diff options
author | midipix <writeonce@midipix.org> | 2016-05-05 20:33:18 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-05-06 11:03:41 -0400 |
commit | cc13115f5076ecda85fc1b195ebdafce8608427b (patch) | |
tree | 786131897deaf6c0432121487fe440e737be8039 /configure | |
parent | 0a3462db3b4b7b26ff07111c1cf869bd44326b85 (diff) | |
download | apimagic-cc13115f5076ecda85fc1b195ebdafce8608427b.tar.bz2 apimagic-cc13115f5076ecda85fc1b195ebdafce8608427b.tar.xz |
build system: properly handle user inclusion of -static in LDFLAGS.
Diffstat (limited to 'configure')
-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 |