peiyongz 2004/07/27 15:04:29
Modified: c/samples Makefile.incl runConfigure
Log:
build on aix xlC_r v6 with v5 comptiable name mangling scheme
Revision Changes Path
1.62 +8 -2 xml-xerces/c/samples/Makefile.incl
Index: Makefile.incl
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/Makefile.incl,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -r1.61 -r1.62
--- Makefile.incl 9 Jul 2004 15:47:57 -0000 1.61
+++ Makefile.incl 27 Jul 2004 22:04:28 -0000 1.62
@@ -156,7 +156,13 @@
#================= AIX SPECIFIC OPTIONS ===========================
ifeq (${PLATFORM}, AIX)
-CMP= -c ${CXXFLAGS} -qnotempinc
+
+ifeq (${CXXVER}, v5compat)
+ CMP= -c ${CXXFLAGS} -qnotempinc -qnamemangling=v5
+else
+ CMP= -c ${CXXFLAGS} -qnotempinc -qnamemangling=ansi
+endif
+
CC=${COMPILER} -D${PLATFORM}
LINK = ${COMPILER} ${LDFLAGS}
# the compiler knows about this two
1.44 +7 -2 xml-xerces/c/samples/runConfigure
Index: runConfigure
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/runConfigure,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- runConfigure 9 Jul 2004 15:47:57 -0000 1.43
+++ runConfigure 27 Jul 2004 22:04:28 -0000 1.44
@@ -90,7 +90,7 @@
[required: no default]"
echo " -c <C compiler name> (e.g. gcc, cc, xlc_r, icc or ecc)"
echo " [default is make default; cc for gnu make]"
- echo " -x <C++ compiler name> (e.g. g++, CC, aCC, aCC05, xlC_r, icc or
ecc)"
+ echo " -x <C++ compiler name> (e.g. g++, CC, aCC, aCC05, xlC_r,
xlC_rv5compat, icc or ecc)"
echo " [default is make default; g++ for gnu make]"
echo " -d (specifies that you want to build debug version) [default: not
debug]"
echo " -r <thread option> can be 'pthread' or 'dce'
@@ -470,6 +470,11 @@
# Set the C compiler and C++ compiler environment variables
#
case $cppcompiler in
+ xlC_rv5compat)
+ CXX="xlC_r"
+ CXXVER="v5compat"
+ ;;
+
xlC* | xlc* | g++ | c++ | cc | CC | aCC | icc | ICC | cxx | ecc)
CXX="$cppcompiler"
;;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]