From: linus Date: Tue, 2 Mar 2010 09:42:52 +0000 (+0000) Subject: Don't pass `-mt' to gcc on Solaris. X-Git-Tag: radsecproxy-1.4-beta1~46 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=libradsec.git;a=commitdiff_plain;h=317902cef5ff7e15e9e2a9758764b5a04b9634ac Don't pass `-mt' to gcc on Solaris. git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@515 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- diff --git a/ChangeLog b/ChangeLog index d5c0c1f..71c780f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -62,5 +62,6 @@ Fixed header files for FreeBSD Fix for multiple UDP servers on same IP address, solves accounting problems. -2009-09-11 1.3.2 +2010-02-26 1.3.2 Fixed UDP fragmentation issue + Fix build on Solaris when compiling with gcc. 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" ;; *)