[wxCL-cvs] SF.net SVN: wxcl: [477] trunk/wxc/configure
Status: Alpha
Brought to you by:
efuzzyone
From: <efu...@us...> - 2006-03-21 08:35:32
|
Revision: 477 Author: efuzzyone Date: 2006-03-21 00:35:19 -0800 (Tue, 21 Mar 2006) ViewCVS: http://svn.sourceforge.net/wxcl/?rev=477&view=rev Log Message: ----------- Added the -fPIC compile flag, which apparently should be used if compiling a shared library. thanks to Paul Viney. Modified Paths: -------------- trunk/wxc/configure Modified: trunk/wxc/configure =================================================================== --- trunk/wxc/configure 2006-03-21 08:29:24 UTC (rev 476) +++ trunk/wxc/configure 2006-03-21 08:35:19 UTC (rev 477) @@ -64,7 +64,7 @@ echo " --wx-config=<program> the wxWindows configure utility [$wxconfig]" echo " --toolkit=<name> the wxWindows gui toolkit [$toolkit]" echo "" - echo "miscelaneous options:" + echo "miscellaneous options:" echo " --dllext=<extension> dynamic link library extension [$dll]" echo " --libprefix=<prefix> library prefix [$lib]" echo " --enable-strip strip the library" @@ -202,6 +202,10 @@ libs="`echo $libs | sed -e \"s|$wxexecprefix|$wwxexecprefix|g\"`" fi +if [ "$OSTYPE" == "linux-gnu" ]; then + cxxflags="$cxxflags -fPIC" +fi + # Do we have (enabled) strip? if test "$enablestrip" = "yes"; then if sh ./config.search $strip; then @@ -263,6 +267,8 @@ EOF echo "done:" -echo " - type 'make' to build the library, or 'make -f Makefile.g++' under linux" -echo " - type 'make install' to install the 'wxc' library." -echo "" +if [ "$OSTYPE" == "linux-gnu" ]; then + echo " - type 'make -f Makefile.g++' to build the library" +else + echo " - type 'make' to build the library" +fi This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |