summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorlinus <linus>2010-03-02 09:42:52 +0000
committerlinus <linus@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2010-03-02 09:42:52 +0000
commit317902cef5ff7e15e9e2a9758764b5a04b9634ac (patch)
tree8a453d08bc7f5920f0e3b085ce1b0ba0fa3b08eb /configure.ac
parentd582147d3b0858bb0ecc5ba754151ec86826494e (diff)
Don't pass `-mt' to gcc on Solaris.
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@515 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index de8652e..7c06725 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,7 +50,10 @@ dnl Check if we're on Solaris and set CFLAGS accordingly
AC_CANONICAL_SYSTEM
case "${target_os}" in
solaris*)
- TARGET_CFLAGS="-mt -DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
+ TARGET_CFLAGS="-DSYS_SOLARIS9 -D_POSIX_PTHREAD_SEMANTICS"
+ if test "$GCC" != yes ; then
+ TARGET_CFLAGS="$TARGET_CFLAGS -mt"
+ fi
TARGET_LDFLAGS="-lpthread -lsocket -lnsl"
;;
*)