diff options
-rw-r--r-- | build/c/intel/configuration-rules.make | 3 | ||||
-rwxr-xr-x | build/c/intel/configure | 8 |
2 files changed, 9 insertions, 2 deletions
diff --git a/build/c/intel/configuration-rules.make b/build/c/intel/configuration-rules.make index 097fc54..ff95fab 100644 --- a/build/c/intel/configuration-rules.make +++ b/build/c/intel/configuration-rules.make @@ -4,7 +4,8 @@ # license : GNU GPL v2; see accompanying LICENSE file $(dcf_root)/c/intel/configuration-dynamic.make: | $(dcf_root)/c/intel/. - $(call message,,$(bld_root)/c/intel/configure $@ $(c_optimize)) + $(call message,,$(bld_root)/c/intel/configure $@ $(c_optimize) \ +"$(c_extra_options)" "$(c_ld_extra_options)") ifndef %foreign% diff --git a/build/c/intel/configure b/build/c/intel/configure index ad11890..6da0f3b 100755 --- a/build/c/intel/configure +++ b/build/c/intel/configure @@ -7,6 +7,8 @@ # $1 out file # $2 optimize (y/n) +# $3 c_extra_options +# $4 c_ld_extra_options # # bld_root - build root # project_name - project name @@ -27,7 +29,11 @@ $echo "'/opt/intel_cc_80/bin/icc'." $echo c_intel=`read_path --command icc` -c_intel_libraries=`$c_intel -print-search-dirs | sed -e 's/libraries: =//p' -e d` + +# Pass c_extra_options and c_ld_extra_options since those can affect the +# search paths (e.g., -m32) and target. +# +c_intel_libraries=`$c_intel $3 $4 -print-search-dirs | sed -e 's/libraries: =//p' -e d` # Intel optimizes by default. # |