diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2016-01-20 10:11:19 +0200 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2016-02-29 14:10:09 +0000 |
commit | 7fa1080a7a96299e648e1c95391bb7fa1d710980 (patch) | |
tree | 81e0f32c0233693f2b661ec652ab37817f45ba76 | |
parent | 2098a5516a8a514f2319289de00391da4250b3e7 (diff) |
configure.ac: save/restore the user LDFLAGS
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c23bcbd..dafbf80 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,7 @@ AC_MSG_CHECKING([whether to enable auxiliary ELF symbol filtering]) if test "x$enable_dt_auxiliary" = xyes; then ( + _SAVE_LDFLAGS="$LDFLAGS" LDFLAGS='-shared -Wl,--auxiliary=libc.so.6' AC_LINK_IFELSE([AC_LANG_SOURCE([])], [dt_auxiliary_supported=yes], @@ -54,6 +55,7 @@ if test "x$enable_dt_auxiliary" = xyes; then AC_MSG_RESULT([no, not supported]) fi test "x$dt_auxiliary_supported" = xyes + LDFLAGS ="$_SAVE_LDFLAGS" ) && dt_auxiliary_supported=yes else dt_auxiliary_supported=no |