stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r386786 - /incubator/stdcxx/trunk/etc/config/vacpp.config
Date Sat, 18 Mar 2006 01:38:16 GMT
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  <sebor@roguewave.com>

	* 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



Mime
View raw message