You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/06/24 08:18:21 UTC
svn commit: r787921 -
/commons/sandbox/runtime/trunk/src/main/native/configure
Author: mturk
Date: Wed Jun 24 06:18:21 2009
New Revision: 787921
URL: http://svn.apache.org/viewvc?rev=787921&view=rev
Log:
Allow linux compilation using SunStudio compiler
Modified:
commons/sandbox/runtime/trunk/src/main/native/configure
Modified: commons/sandbox/runtime/trunk/src/main/native/configure
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/configure?rev=787921&r1=787920&r2=787921&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/configure (original)
+++ commons/sandbox/runtime/trunk/src/main/native/configure Wed Jun 24 06:18:21 2009
@@ -319,6 +319,19 @@
varadds shflags '-shared -fPIC -Wl,-soname -Wl,\$@'
if [ ".$java_pinc" = . ]; then java_pinc=linux; fi
;;
+ linux-cc )
+ if [ ".$mach" = ".i386" ]; then
+ varadds ccflags "-fast -xbuiltin=none -U__MATHERR_ERRNO_DONTCARE -xnolibmopt -xnolibmil"
+ fi
+ varadds cppopts "-D_LINUX=2 -D_GNU_SOURCE"
+ varadds ccflags "-xstrconst -xdepend -O -Xa -KPIC"
+ varadds ldflags "-lpthread -ldl"
+ varadds shflags "-G -KPIC -dy"
+ cxx="CC"
+ cpp="cc -E"
+ as="cc"
+ if [ ".$java_pinc" = . ]; then java_pinc=linux; fi
+ ;;
darwin-gcc )
r="`uname -r | sed 's/\.//g'`"
varadds cppopts "-DDARWIN=$r"
@@ -332,12 +345,15 @@
if [ ".$mach" = ".sparc" ]; then
varadds ccflags "-xarch=sparc"
else
- varadds ccflags "-fast"
+ varadds ccflags "-fast -xbuiltin=none -U__MATHERR_ERRNO_DONTCARE -xnolibmopt -xnolibmil"
fi
varadds cppopts "-D_POSIX_PTHREAD_SEMANTICS -DSOLARIS2=$r"
varadds ccflags "-xstrconst -xdepend -O -Xa -KPIC"
varadds ldflags "-lrt -lthread -lsocket -lnsl -ldl"
varadds shflags "-G -KPIC -dy"
+ cxx="CC"
+ cpp="cc -E"
+ as="cc"
if [ ".$java_pinc" = . ]; then java_pinc=solaris; fi
;;
hpux-cc )