aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2009-01-11 19:00:17 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2009-01-11 19:00:33 +0000
commit3b2024c43745607ee7bfa49910724b0df890f6cd (patch)
treee1aee8e23b15b3f551b756bf1f4d13786ef9a22f
parent58d34274c86e6723c392acdca286cf38bfeb8f3f (diff)
downloadpaludis-3b2024c43745607ee7bfa49910724b0df890f6cd.tar.gz
paludis-3b2024c43745607ee7bfa49910724b0df890f6cd.tar.xz
Fix --as-needed build
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 1f94252..7e0f367 100644
--- a/configure.ac
+++ b/configure.ac
@@ -601,8 +601,8 @@ int main(int, char **)
}
],
[AC_MSG_RESULT([already have it])],
- [save_LDFLAGS=$LDFLAGS
- LDFLAGS="-lrt $LDFLAGS"
+ [save_LIBS=$LIBS
+ LIBS="-lrt $LIBS"
AC_LINK_IFELSE([
#include <time.h>
#include <sys/time.h>
@@ -620,7 +620,7 @@ int main(int, char **)
AC_MSG_RESULT([don't know])
AC_MSG_ERROR([don't know how to get clock_gettime])
])
- LDFLAGS=$save_LDFLAGS
+ LIBS=$save_LIBS
])
AC_SUBST([PTHREAD_LIBS])