diff options
author | Jason Evans <jasone@canonware.com> | 2016-10-28 00:10:56 (GMT) |
---|---|---|
committer | Jason Evans <jasone@canonware.com> | 2016-10-28 07:47:53 (GMT) |
commit | 875ff15e6a99f4ff4d8aaaaf76d9dc5f3d8f1e39 (patch) | |
tree | c0af643fd76119edfdaf0505ddf2e689ad2a1f06 /configure.ac | |
parent | 1eb801bcad74f4b7eb4d5ab3ce2d67935c10ac58 (diff) | |
download | jemalloc-875ff15e6a99f4ff4d8aaaaf76d9dc5f3d8f1e39.zip jemalloc-875ff15e6a99f4ff4d8aaaaf76d9dc5f3d8f1e39.tar.gz jemalloc-875ff15e6a99f4ff4d8aaaaf76d9dc5f3d8f1e39.tar.bz2 |
Only use --whole-archive with gcc.
Conditionalize use of --whole-archive on the platform plus compiler,
rather than on the ABI. This fixes a regression caused by
7b24c6e5570062495243f1e55131b395adb31e33 (Use --whole-archive when
linking integration tests on MinGW.).
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index d5ffd4c..c45d821 100644 --- a/configure.ac +++ b/configure.ac @@ -313,6 +313,7 @@ o="$ac_objext" a="a" exe="$ac_exeext" libprefix="lib" +link_whole_archive="0" DSO_LDFLAGS='-shared -Wl,-soname,$(@F)' RPATH='-Wl,-rpath,$(1)' SOREV="${so}.${rev}" @@ -442,6 +443,7 @@ case "${host}" in else importlib="${so}" DSO_LDFLAGS="-shared" + link_whole_archive="1" fi a="lib" libprefix="" @@ -479,6 +481,7 @@ AC_SUBST([o]) AC_SUBST([a]) AC_SUBST([exe]) AC_SUBST([libprefix]) +AC_SUBST([link_whole_archive]) AC_SUBST([DSO_LDFLAGS]) AC_SUBST([EXTRA_LDFLAGS]) AC_SUBST([SOREV]) |