summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorLars Hammarstrand <lars.hammarstrand@gmail.com>2013-04-16 13:40:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2014-04-15 18:23:00 +0200
commitadd5d7a8ce6fb53790a6885519f8f700755b52e0 (patch)
tree9771f0c1b26ff0fcf075d0ce850adc959c2c1f61 /configure
parent37f3f32d51eee4a3d175dad13daeed8ed5be1f89 (diff)
configure: allow the gas-preprocessor to be called with an absolute path.
Allow the configure tool to call the gas-preprocessor with an absolute path when included with either the "--as" or with a separate "--gas" option. The patch is backward compatible and will not break any current configuration setups. The new behavior that comes with this option can be utilized in the following ways: Examples: - Just as single option that includes both the gas-preprocessor.pl and cc/as at the same time: $ configure --as="/opt/app/build-tools/gas-preprocessor.pl \ /Applications/Xcode.app/.../Developer/usr/bin/gcc" - Call gas-preprocessor with a separate option in conjunction with --as: $ configure --gas="/opt/app/build-tools/gas-preprocessor.pl" \ --as="/Applications/Xcode.app/.../Developer/usr/bin/gcc" - Address only the the gas-preprocessor and it will automatically fall back to as or cc whichever that's defined: $ configure --gas="/opt/app/build-tools/gas-preprocessor.pl" - Or if no gas-preprocessor.pl is explicitly defined, it falls back to the old behaivor.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 42990d2785..e7c2d10e67 100755
--- a/configure
+++ b/configure
@@ -1851,6 +1851,7 @@ CMDLINE_SET="
cxx
dep_cc
extra_version
+ gas
host_cc
host_cflags
host_ld
@@ -3853,7 +3854,7 @@ case $target_os in
strip="strip -d"
;;
darwin)
- gas="gas-preprocessor.pl $cc"
+ test "${as#*gas-preprocessor.pl}" != "$as" || gas="${gas:=gas-preprocessor.pl} ${as:=$cc}"
enabled ppc && add_asflags -force_cpusubtype_ALL
SHFLAGS='-dynamiclib -Wl,-single_module -Wl,-install_name,$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR),-current_version,$(LIBVERSION),-compatibility_version,$(LIBMAJOR)'
enabled x86_32 && append SHFLAGS -Wl,-read_only_relocs,suppress