aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/gnu/configure
diff options
context:
space:
mode:
Diffstat (limited to 'build/cxx/gnu/configure')
-rwxr-xr-xbuild/cxx/gnu/configure8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/cxx/gnu/configure b/build/cxx/gnu/configure
index a52ba7a..bda4bdb 100755
--- a/build/cxx/gnu/configure
+++ b/build/cxx/gnu/configure
@@ -7,6 +7,8 @@
# $1 out file
# $2 optimize (y/n)
+# $3 cxx_extra_options
+# $4 cxx_ld_extra_options
#
# bld_root - build root
# project_name - project name
@@ -27,7 +29,11 @@ $echo "'/usr/local/bin/g++' or 'distcc g++'."
$echo
cxx_gnu=`read_path --command g++`
-cxx_gnu_libraries=`$cxx_gnu -print-search-dirs | sed -e 's/libraries: =//p' -e d`
+
+# Pass cxx_extra_options and cxx_ld_extra_options since those
+# can affect the search paths (e.g., -m32).
+#
+cxx_gnu_libraries=`$cxx_gnu $3 $4 -print-search-dirs | sed -e 's/libraries: =//p' -e d`
optimization=