Author: sebor
Date: Fri Mar 17 17:38:14 2006
New Revision: 386786
URL: http://svn.apache.org/viewcvs?rev=386786&view=rev
Log:
2006-03-17 Martin Sebor <[EMAIL PROTECTED]>
* vacpp.config: Used xlc with a whole bunch of obscure libraries
on the link line instead of xlC on Linux in order to prevent the
compiler driver from linking with gcc's libstdc++.
Modified:
incubator/stdcxx/trunk/etc/config/vacpp.config
Modified: incubator/stdcxx/trunk/etc/config/vacpp.config
URL:
http://svn.apache.org/viewcvs/incubator/stdcxx/trunk/etc/config/vacpp.config?rev=386786&r1=386785&r2=386786&view=diff
==============================================================================
--- incubator/stdcxx/trunk/etc/config/vacpp.config (original)
+++ incubator/stdcxx/trunk/etc/config/vacpp.config Fri Mar 17 17:38:14 2006
@@ -19,8 +19,14 @@
rtl_enabled = 1
endif
else
- CXX := xlC
- rtl_enabled = 0
+ ifeq ($(OSNAME),AIX)
+ CXX := xlC
+ else # assume Linux
+ # use xlc on Linux to prevent linking in the native
+ # C++ Standard Library (gcc's libstdc++)
+ CXX := xlc
+ endif
+ rtl_enabled = 0
endif
# _r suffix links with reentrant versions of system libraries
@@ -82,6 +88,10 @@
# set the assembler file suffix to .s
AS_EXT = .s
+
+ ifeq ($(findstring xlCcore,$(CXX)),)
+ LDLIBS = -lxlopt -lxl -libmc++ -lsupc++ -lgcc -lgcc_eh -lc
+ endif
endif
# when Run-Time Linking is enabled create a dynamically loadable