From: deal Date: Tue, 19 Aug 2003 18:12:08 +0000 (+0000) Subject: Work around a problem with cxx not wanting to generate an executable file, but rather... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d32ba0f0308c84aed2cb828a9b3db23691b20d8;p=dealii-svn.git Work around a problem with cxx not wanting to generate an executable file, but rather a shared lib. git-svn-id: https://svn.dealii.org/trunk@7949 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/common/scripts/Makefile b/deal.II/common/scripts/Makefile index fa257bbd1e..a60a482f78 100644 --- a/deal.II/common/scripts/Makefile +++ b/deal.II/common/scripts/Makefile @@ -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