From b1ab45bd09c01f9ec61e0017ebe42af1a8bf0f6d Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Wed, 24 Sep 2003 02:40:50 +0000 Subject: "" svn path=/trunk/; revision=1022 --- externals/grill/vasp/config-pd-linux.txt | 4 ++-- externals/grill/vasp/makefile.pd-linux | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) (limited to 'externals/grill/vasp') diff --git a/externals/grill/vasp/config-pd-linux.txt b/externals/grill/vasp/config-pd-linux.txt index 32fdb9fc..eec673ee 100644 --- a/externals/grill/vasp/config-pd-linux.txt +++ b/externals/grill/vasp/config-pd-linux.txt @@ -10,7 +10,7 @@ PD=/usr/local/lib/pd # where are the PD header files? # leave it blank if it is a system directory (like /usr/local/include), -# since gcc 3.2 complains about it +# since gcc >= 3.2 complains about it PDINC= # where do the flext libraries reside? @@ -32,7 +32,7 @@ HELPDIR=${PD}/doc/5.reference # additional compiler flags # (check if they fit to your system!) # UFLAGS=-mcpu=pentium3 -msse -mfpmath=sse -fprefetch-loop-arrays -UFLAGS=-mcpu=pentiumpro +# UFLAGS=-mcpu=pentiumpro # define to link against shared flext library (flext version >= 0.5.0) #FLEXT_SHARED=1 diff --git a/externals/grill/vasp/makefile.pd-linux b/externals/grill/vasp/makefile.pd-linux index 04d971ef..eb5c4d30 100644 --- a/externals/grill/vasp/makefile.pd-linux +++ b/externals/grill/vasp/makefile.pd-linux @@ -13,24 +13,24 @@ CONFIG=config-pd-linux.txt include ${CONFIG} -FLEXTLIB=$(FLEXTPATH)/flext_t.a # compiler stuff INCLUDES=$(PDINC) -FLAGS=-DFLEXT_SYS=2 -DFLEXT_THREADS -fno-exceptions -CFLAGS=-O6 ${UFLAGS} -fmove-all-movables -frerun-loop-opt -#CFLAGS+=-funroll-loops -fmove-all-movables -freduce-all-givs -fschedule-insns2 -foptimize-register-move +FLAGS=-DFLEXT_SYS=2 -DFLEXT_THREADS +CFLAGS=-O2 ${UFLAGS} LDFLAGS=-Wl,-s - -LIBS=m +LIBS=flext ifdef FLEXT_SHARED -CFLAGS+=-DFLEXT_SHARED -LDFLAGS+=-Bdynamic -LINKFLEXT=-lflext +CFLAGS+=-shared -DFLEXT_SHARED + +ifeq ($(CXX),icc) +LDFLAGS+=-i_dynamic else -LINKFLEXT=$(FLEXTLIB) +LDFLAGS+=-Wl,-Bdynamic +endif + endif @@ -59,7 +59,7 @@ $(TARGDIR)/%.o : $(SRCDIR)/%.cpp $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@ $(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) - $(CXX) $(LDFLAGS) -shared $^ $(patsubst %,-l%,$(LIBS)) -L$(FLEXTPATH) $(LINKFLEXT) -o $@ + $(CXX) $(LDFLAGS) -shared -o$@ $^ -L$(FLEXTPATH) $(patsubst %,-l%,$(LIBS)) strip --strip-unneeded $@ chmod 755 $@ -- cgit v1.2.1