]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Work around a problem with cxx not wanting to generate an executable file, but rather...
authordeal <deal@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Aug 2003 18:12:08 +0000 (18:12 +0000)
committerdeal <deal@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 19 Aug 2003 18:12:08 +0000 (18:12 +0000)
git-svn-id: https://svn.dealii.org/trunk@7949 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/Makefile

index fa257bbd1ee14184a461e05acb5c368ac9653e66..a60a482f7804598cbddb075a8da123da9d8da20f 100644 (file)
@@ -7,11 +7,17 @@ D=../..
 
 include $D/common/Make.global_options
 
-
+# if compaq cxx and we have shared, then remove -shared again from
+# LDFLAGS, since this prevents generation of a working executable. this
+# is clearly a hack, but I'm too lazy for now to work things out
+ifeq ($(GXX-VERSION),compaq_cxx)
+  XLDFLAGS = $(LDFLAGS:-shared=)
+endif
 
 make_dependencies : make_dependencies.cc
        @echo ============================ Compiling $@
-       @$(CXX) $(CXXFLAGS.o) $< -o $@
+       $(CXX) $(CXXFLAGS.o) -c $<
+       $(CXX) $(XLDFLAGS) -o $@ make_dependencies.o
 
 clean:
        -rm -f make_dependencies

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.