diff options
author | Nikolai Merinov <n.merinov@samsung.com> | 2019-02-01 11:27:39 +0300 |
---|---|---|
committer | Nikolai Merinov <n.merinov@samsung.com> | 2019-02-01 11:31:13 +0300 |
commit | 3049e111240b688d2ab4fa39ce128c0aaedd458a (patch) | |
tree | 446a9f59b687ce71ade14ca7069e97489249def7 | |
parent | 4ade08f6c2cb0ce40cb95c78b9f7e75a413c26d1 (diff) | |
download | toybox-sandbox/nmerinov/llvm.tar.gz toybox-sandbox/nmerinov/llvm.tar.bz2 toybox-sandbox/nmerinov/llvm.zip |
Replace hardcoded gcc with CC, define HOSTCCsandbox/nmerinov/llvm
-rw-r--r-- | packaging/toybox.spec | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packaging/toybox.spec b/packaging/toybox.spec index 78a2f24..c387ba3 100644 --- a/packaging/toybox.spec +++ b/packaging/toybox.spec @@ -69,7 +69,7 @@ ToyBox symlinks for utilities corresponding to 'nslookup' package. cp %{SOURCE1001} . # create dynamic toybox - the executable is toybox cp %{SOURCE1} .config -make -j 4 CC="gcc $RPM_OPT_FLAGS" CFLAGS="$CFLAGS -fPIE" LDOPTIMIZE="-Wl,--gc-sections -pie" +make -j 4 CC="${CC:-gcc} $RPM_OPT_FLAGS" HOSTCC="${CC:-gcc}" CFLAGS="$CFLAGS -fPIE" LDOPTIMIZE="-Wl,--gc-sections -pie" cp toybox toybox-dynamic %install |