From 2c0b8763d458cc24ea8de312fe471cef907524bf Mon Sep 17 00:00:00 2001 From: deal Date: Tue, 19 Aug 2003 18:12:08 +0000 Subject: [PATCH] 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 --- deal.II/common/scripts/Makefile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.5