summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/flasm/files/flasm-1.6.1-makefile.patch')
-rw-r--r--app-misc/flasm/files/flasm-1.6.1-makefile.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/app-misc/flasm/files/flasm-1.6.1-makefile.patch b/app-misc/flasm/files/flasm-1.6.1-makefile.patch
new file mode 100644
index 000000000000..549653f8451e
--- /dev/null
+++ b/app-misc/flasm/files/flasm-1.6.1-makefile.patch
@@ -0,0 +1,27 @@
+--- Makefile.old 2005-10-14 02:11:53.000000000 +0200
++++ Makefile 2006-10-27 22:59:55.654125000 +0200
+@@ -1,6 +1,4 @@
+ UNAME = $(shell uname)
+-CC = gcc
+-CFLAGS = -g -Wall -O2
+ LIBS = -lz
+ OFILES = util.o keywords.o flasm.o unflasm.o lex.yy.o assembler.tab.o
+ GARBAGE = assembler.tab.* lex.yy.c memwatch.o gmon.out memwatch.log core
+@@ -9,8 +7,6 @@
+ ifneq (,$(findstring debug,$(MAKECMDGOALS)))
+ CFLAGS += -DMEMWATCH -pg -p -pedantic -W -Wcast-align -Wcast-qual -Wshadow -Wnested-externs -Wstrict-prototypes -Waggregate-return -Wmissing-prototypes -Wpointer-arith
+ OFILES += memwatch.o
+-else
+- CFLAGS += -s
+ endif
+
+ # executable should not depend on cygwin.dll
+@@ -26,7 +22,7 @@
+ -rm -f ${OFILES} ${GARBAGE}
+
+ flasm: ${OFILES}
+- ${CC} $(CFLAGS) -o flasm ${OFILES} ${LIBS}
++ ${CC} $(CFLAGS) $(LDFLAGS) -o flasm ${OFILES} ${LIBS}
+
+ assembler.tab.c assembler.tab.h: assembler.y
+ bison --defines --debug assembler.y