From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- .../sim4/files/sim4-20030921-fix-build-system.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 sci-biology/sim4/files/sim4-20030921-fix-build-system.patch (limited to 'sci-biology/sim4/files') diff --git a/sci-biology/sim4/files/sim4-20030921-fix-build-system.patch b/sci-biology/sim4/files/sim4-20030921-fix-build-system.patch new file mode 100644 index 000000000000..8fd50fe9cfae --- /dev/null +++ b/sci-biology/sim4/files/sim4-20030921-fix-build-system.patch @@ -0,0 +1,21 @@ +Fix build system to honour user flags. + +--- a/Makefile ++++ b/Makefile +@@ -1,13 +1,11 @@ +- + # For better performance, replace ``-O'' with whatever + # the best optimization flag is for your computer. + # For Sun's compilers under Solaris, ``-fast'' works well. + # For gcc, ``-O2'' works well. +-CC=cc +-CFLAGS=-O +-LDLIBS=-lm ++CC ?= gcc ++LDLIBS = -lm + + sim4: +- $(CC) -o sim4 -I. $(CFLAGS) *.c $(LDLIBS) ++ $(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o sim4 -I. *.c $(LDLIBS) + clean: + rm -f sim4 *.o -- cgit v1.2.3