diff options
author | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-10-10 14:00:24 +0000 |
---|---|---|
committer | allen <allen@17b73243-c579-4c4c-a9d2-2d5706c11dac> | 2001-10-10 14:00:24 +0000 |
commit | 95a3a950b88c9315b68d970dc4e8556d71525a5c (patch) | |
tree | 922e3243c364722f5a43a86abb57b6624437f0b4 /lib/make | |
parent | f7532f9d2694a8c6126d015cb6b89229bb040302 (diff) |
Fixed compiler flags for native C/C++/Fortran compilers.
This closes PR Cactus/793.
git-svn-id: http://svn.cactuscode.org/flesh/trunk@2397 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'lib/make')
-rw-r--r-- | lib/make/known-architectures/osf | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/lib/make/known-architectures/osf b/lib/make/known-architectures/osf index bf7c37a5..06d4e96b 100644 --- a/lib/make/known-architectures/osf +++ b/lib/make/known-architectures/osf @@ -6,18 +6,38 @@ # @desc # # @enddesc -# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/osf,v 1.5 2001-09-04 15:09:32 allen Exp $ +# @version $Header: /mnt/data2/cvs2svn/cvs-repositories/Cactus/lib/make/known-architectures/osf,v 1.6 2001-10-10 14:00:24 allen Exp $ # @@*/ if test "$CCTK_CONFIG_STAGE" = "preferred-compilers" ; then -: + if test -z "$CC"; then + echo Setting C compiler to cc + CC="cc" + fi else - : ${LIBS="for m"} + if test "$CC" = "cc" ; then + : ${CFLAGS='-std1'} + : ${C_OPTIMISE_FLAGS='-O5 -fast'} + : ${C_DEBUG_FLAGS='-g3'} + fi + if test "$CXX" = "cxx" ; then : ${CXX_DEPEND='$(CXX) -E -M $(CPPFLAGS) -noimplicit_include'} + : ${CXXFLAGS='-std1'} + : ${CXX_OPTIMISE_FLAGS='-O5 -fast'} + : ${CXX_DEBUG_FLAGS='-g3'} fi + : ${F77FLAGS='-std1'} + : ${F77_OPTIMISE_FLAGS='-O5 -fast'} + : ${F77_DEBUG_FLAGS='-g3'} + : ${F90FLAGS='-std1'} + : ${F90_OPTIMISE_FLAGS='-O5 -fast'} + : ${F90_DEBUG_FLAGS='-g3'} + + : ${LIBS="for m"} + fi |