From 2b31a3d7d0f633896119c5197e739231cd0f2637 Mon Sep 17 00:00:00 2001 From: tradke Date: Sat, 19 Jan 2002 17:52:36 +0000 Subject: Added another C/C++ compiler optimization option. Added linker option to support virtual memory of up to 2GB per process. git-svn-id: http://svn.cactuscode.org/flesh/trunk@2587 17b73243-c579-4c4c-a9d2-2d5706c11dac --- lib/make/known-architectures/aix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/make/known-architectures/aix') diff --git a/lib/make/known-architectures/aix b/lib/make/known-architectures/aix index ec3291c8..e44e65ef 100644 --- a/lib/make/known-architectures/aix +++ b/lib/make/known-architectures/aix @@ -44,7 +44,7 @@ else cc|xlc|xlc_r) : ${C_DEPEND='$(CPP) -M $(CPPFLAGS)'} : ${C_DEPEND_OUT=' > /dev/null ; mv $(basename $(basename $@)).u $@'} - : ${CFLAGS="-qspill=10000"} + : ${CFLAGS='-qspill=10000 -qmaxmem=-1'} ;; *) ;; @@ -57,7 +57,7 @@ else xlC|xlC_r) : ${CXX_DEPEND='$(CXX) -E -M $(CPPFLAGS)'} : ${CXX_DEPEND_OUT=' > /dev/null ; mv $(basename $(basename $@)).u $@'} - : ${CXXFLAGS="-qspill=10000"} + : ${CXXFLAGS='-qspill=10000 -qmaxmem=-1'} ;; *) ;; @@ -73,6 +73,10 @@ else fi fi + # allow each process to use up to 2 GB of virtual memory (default is 256 MB) + if test "$LD" != 'g++' -a "$LD" != 'c++'; then + : ${LDFLAGS='-bmaxdata:0x80000000'} + fi # MPI stuff -- cgit v1.2.3