diff options
author | midipix <writeonce@midipix.org> | 2016-05-05 20:33:18 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-11 00:22:42 -0500 |
commit | 598a7f6e0b58b9ac1e381cb6454810bc616c953e (patch) | |
tree | 2260ba58c375f2bb7f84409785235d9aeae7d18f | |
parent | a5d617b0b7d38fedba6d10b4cbdc709e0a252f35 (diff) | |
download | mdso-598a7f6e0b58b9ac1e381cb6454810bc616c953e.tar.bz2 mdso-598a7f6e0b58b9ac1e381cb6454810bc616c953e.tar.xz |
build system: properly handle user inclusion of -static in LDFLAGS.
-rwxr-xr-x | configure | 13 |
1 files changed, 13 insertions, 0 deletions
@@ -322,6 +322,18 @@ cross_defaults() } +config_flags() +{ + mb_ldflags_tmp=" $mb_ldflags " + mb_ldflags_libs=`echo "$mb_ldflags_tmp" | sed 's/ -static / /g'` + + if [ "$mb_ldflags_tmp" != "$mb_ldflags_libs" ]; then + mb_ldflags="$mb_ldflags_libs" + mb_ldflags_util="$mb_ldflags_util -static" + fi +} + + config_copy() { sed -e 's^@package@^'"$mb_package"'^g' \ @@ -522,6 +534,7 @@ cross_defaults # four: config +config_flags config_copy config_host config_status |