From 06b602d7bc9dd4bf105148a712510fb79fd852eb Mon Sep 17 00:00:00 2001 From: nicolas <nicolas@nptool> Date: Fri, 1 Feb 2013 15:06:02 +0000 Subject: [PATCH] * Update Makefiles so it compiles with new versions of gcc (>= 4.6.3) on Linux --- NPLib/Makefile.arch | 4 ++-- NPSimulation/GNUmakefile | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NPLib/Makefile.arch b/NPLib/Makefile.arch index 543ca7973..988c5be16 100644 --- a/NPLib/Makefile.arch +++ b/NPLib/Makefile.arch @@ -117,9 +117,9 @@ endif ifeq ($(ARCH),linuxx8664gcc) # AMD Opteron and Intel EM64T (64 bit mode) Linux with gcc 3.x CXX = g++ -CXXFLAGS = $(OPT2) -Wall -fPIC +CXXFLAGS = $(OPT2) -Wall -fPIC -Xlinker --no-as-needed LD = g++ -LDFLAGS = $(OPT2) +LDFLAGS = $(OPT2) -Xlinker --no-as-needed SOFLAGS = -shared endif diff --git a/NPSimulation/GNUmakefile b/NPSimulation/GNUmakefile index b9dc9d467..2e3f9374f 100644 --- a/NPSimulation/GNUmakefile +++ b/NPSimulation/GNUmakefile @@ -19,6 +19,7 @@ G4BIN = ./bin CPPFLAGS += $(shell root-config --cflags) CPPFLAGS += -I$(NPTOOL)/NPLib/include +CPPFLAGS += -Xlinker --no-as-needed EXTRALIBS = $(shell root-config --glibs) -lMathMore EXTRALIBS += `$(NPTOOL)/NPLib/liblist` .PHONY: all -- GitLab