changes for bluedrop with xlc 64 compiler (support both aix and linux)
authorGengbin Zheng <gzheng@illinois.edu>
Wed, 5 May 2010 13:06:42 +0000 (08:06 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Wed, 5 May 2010 13:06:42 +0000 (08:06 -0500)
src/arch/common/cc-xlc64.sh
src/arch/net-aix-ppc/conv-mach.sh
src/arch/net-linux-ppc/conv-mach.sh

index b53e6232d1e6ad2ccc4d193f89dce1ec5f57ea79..50be1e33ab57febcf9ca38cb53a89be51a4e1267 100644 (file)
@@ -6,8 +6,18 @@ CMK_CXX_OPTIMIZE='-O3 -qstrict -Q! '
 CMK_CC64=true
 CMK_PIC='-qpic=small'
 
-CMK_LD="$CMK_CC -brtl "
-CMK_LDXX="$CMK_CXX -brtl "
+CMK_LD="$CMK_CC "
+CMK_LDXX="$CMK_CXX "
+if test "$isAIX" = true
+then
+  CMK_LD="$CMK_LD -brtl"
+  CMK_LDXX="$CMK_LDXX -brtl"
+fi
+
+CMK_SEQ_CC='xlc_r -q64'
+CMK_SEQ_LD='xlc_r -q64'
+CMK_SEQ_CXX='xlC_r -qstaticinline -q64'
+CMK_SEQ_LDXX='xlC_r -q64'
 
 CMK_NATIVE_CC='xlc_r -q64'
 CMK_NATIVE_LD='xlc_r -q64'
@@ -18,5 +28,9 @@ CMK_CF77='xlf_r -q64 '
 CMK_CF90='xlf90_r -q64 -qsuffix=f=f90' 
 CMK_CF90_FIXED='xlf90_r -q64 ' 
 
-CMK_AR='ar -X 64 cq'
-CMK_NM='nm -X 64'
+if test "$isAIX" = "true"
+then
+  AR_OPTS="-X 64"
+fi
+CMK_AR="ar $AR_OPTS cq"
+CMK_NM="nm $AR_OPTS"
index 196cb47b1ce519682d02cd853a5afcb8ad46be93..a103546b0013e9b35daf8dce234c6bc19571c6e7 100644 (file)
@@ -1,3 +1,5 @@
+isAIX=true
+
 CMK_CPP_CHARM='/usr/lib/cpp'
 CMK_CPP_C='xlc -E'
 CMK_CC='xlc_r -qcpluscmt '
index 64bd77955083e561b57e9c8b247cbc58f431eabf..237caa97b29d21fe45bbdc7e9c2e4aef2093a297 100644 (file)
@@ -1,3 +1,5 @@
+isLinux=true
+
 CMK_CPP_CHARM="/lib/cpp -P"
 CMK_CPP_C="gcc -E"
 CMK_CC="gcc -fPIC -m32"