- dnl at least gcc 2.95 warns that -fPIC is ignored when
- dnl compiling each and every file under AIX which is annoying,
- dnl so don't use it there (it's useless as AIX runs on
- dnl position-independent architectures only anyhow)
- PIC_FLAG=""
-
- dnl -bexpfull is needed by AIX linker to export all symbols (by
- dnl default it doesn't export any and even with -bexpall it
- dnl doesn't export all C++ support symbols, e.g. vtable
- dnl pointers) but it's only available starting from 5.1 (with
- dnl maintenance pack 2, whatever this is), see
- dnl http://www-128.ibm.com/developerworks/eserver/articles/gnu.html
- case "${BAKEFILE_HOST}" in
- *-*-aix5* )
- LD_EXPFULL="-Wl,-bexpfull"
- ;;
- esac
-
- SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
- SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
- else
- dnl FIXME: makeC++SharedLib is obsolete, what should we do for
- dnl recent AIX versions?
+ dnl at least gcc 2.95 warns that -fPIC is ignored when
+ dnl compiling each and every file under AIX which is annoying,
+ dnl so don't use it there (it's useless as AIX runs on
+ dnl position-independent architectures only anyhow)
+ PIC_FLAG=""
+
+ dnl -bexpfull is needed by AIX linker to export all symbols (by
+ dnl default it doesn't export any and even with -bexpall it
+ dnl doesn't export all C++ support symbols, e.g. vtable
+ dnl pointers) but it's only available starting from 5.1 (with
+ dnl maintenance pack 2, whatever this is), see
+ dnl http://www-128.ibm.com/developerworks/eserver/articles/gnu.html
+ case "${BAKEFILE_HOST}" in
+ *-*-aix5* )
+ LD_EXPFULL="-Wl,-bexpfull"
+ ;;
+ esac
+
+ SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
+ SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
+ else
+ dnl FIXME: makeC++SharedLib is obsolete, what should we do for
+ dnl recent AIX versions?