moved -Wl,-u,_gmpi_macosx_malloc_hack from LD options to CMK_LIBS together with linki...
authorGengbin Zheng <gzheng@illinois.edu>
Sun, 16 Jan 2005 06:03:05 +0000 (06:03 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Sun, 16 Jan 2005 06:03:05 +0000 (06:03 +0000)
src/arch/mpi-darwin-ppc/conv-mach.sh

index 3c797ec678d3d909ea2491ee990a227c2488de95..1f88f4af54b80d6b4ccdce52a09b9174dd9cc736 100644 (file)
@@ -9,11 +9,11 @@ CMK_CC="mpicc -fPIC "
 OPTS_CXX="$OPTS_CXX -Wno-long-double -dynamic -fno-common "
 CMK_CXX="mpicxx -fPIC "
 CMK_CXXPP="mpicxx -E "
 OPTS_CXX="$OPTS_CXX -Wno-long-double -dynamic -fno-common "
 CMK_CXX="mpicxx -fPIC "
 CMK_CXXPP="mpicxx -E "
-OPTS_LD="$OPTS_LD -multiply_defined suppress -flat_namespace -Wl,-u,_gmpi_macosx_malloc_hack  "
+OPTS_LD="$OPTS_LD -multiply_defined suppress -flat_namespace "
 CMK_LD="$CMK_CC "
 CMK_LD="$CMK_CC "
-OPTS_LDXX="$OPTS_LDXX -multiply_defined suppress -flat_namespace -Wl,-u,_gmpi_macosx_malloc_hack  "
+OPTS_LDXX="$OPTS_LDXX -multiply_defined suppress -flat_namespace "
 CMK_LDXX="$CMK_CXX "
 CMK_LDXX="$CMK_CXX "
-CMK_LIBS="-lckqt -lmpich -lpmpich"
+CMK_LIBS="-Wl,-u,_gmpi_macosx_malloc_hack -lckqt -lmpich -lpmpich"
 CMK_RANLIB="ranlib"
 
 # Assumes IBM xlf90 compiler:
 CMK_RANLIB="ranlib"
 
 # Assumes IBM xlf90 compiler: