diff options
author | David Seifert <soap@gentoo.org> | 2017-03-08 22:35:40 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-03-08 23:16:34 +0100 |
commit | a9691d02216b727d0d148a0048ebf3e425e6d8f4 (patch) | |
tree | 805eefef9f90fd326a08aba5875b1b27bb437fb0 /sci-biology/pals/files/pals-1.0-fix-build-system.patch | |
parent | sci-biology/clustalw-mpi: Modernise to EAPI 6 (diff) | |
download | gentoo-a9691d02216b727d0d148a0048ebf3e425e6d8f4.tar.gz gentoo-a9691d02216b727d0d148a0048ebf3e425e6d8f4.tar.bz2 gentoo-a9691d02216b727d0d148a0048ebf3e425e6d8f4.zip |
sci-biology/pals: Modernise to EAPI 6
Package-Manager: Portage-2.3.4, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4165
Diffstat (limited to 'sci-biology/pals/files/pals-1.0-fix-build-system.patch')
-rw-r--r-- | sci-biology/pals/files/pals-1.0-fix-build-system.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/sci-biology/pals/files/pals-1.0-fix-build-system.patch b/sci-biology/pals/files/pals-1.0-fix-build-system.patch new file mode 100644 index 000000000000..a020a697f85b --- /dev/null +++ b/sci-biology/pals/files/pals-1.0-fix-build-system.patch @@ -0,0 +1,34 @@ +Make build system honour user variables + +--- a/Makefile ++++ b/Makefile +@@ -1,6 +1,4 @@ +-CFLAGS = -O3 -march=pentiumpro -mcpu=pentiumpro -funroll-loops -Winline -DNDEBUG=1 +-LDLIBS = -lm -static +-# LDLIBS = -lm ++LDLIBS = -lm + + OBJ = .o + EXE = +@@ -8,18 +6,13 @@ + RM = rm -f + CP = cp + +-GPP = g++ +-LD = $(GPP) $(CFLAGS) +-CPP = $(GPP) -c $(CFLAGS) +-CC = gcc -c $(CFLAGS) +- + all: pals + + CPPSRC = $(sort $(wildcard *.cpp)) + CPPOBJ = $(subst .cpp,.o,$(CPPSRC)) + +-$(CPPOBJ): %.o: %.cpp +- $(CPP) $< -o $@ ++%.o: %.cpp ++ $(CXX) $(CXXFLAGS) -DNDEBUG $(CPPFLAGS) -c $< -o $@ + + pals: $(CPPOBJ) +- $(LD) -o pals $(CPPOBJ) $(LDLIBS) ++ $(CXX) $(LDFLAGS) $(CXXFLAGS) -o pals $(CPPOBJ) $(LDLIBS) |