freebsd-ports/security/pdfcrack/files/patch-Makefile
Philippe Audeoud c5d24f8a77 - Respect CC, CFLAGS
- While I'm here, update maintainer address

PR: ports/121451
Submitted by: bf <bf2006a@yahoo.com>
Approved by: tabthorpe (co-mentor)
2008-03-07 13:29:31 +00:00

27 lines
872 B
Text

--- Makefile.orig 2006-10-27 08:52:08.000000000 -0400
+++ Makefile 2008-03-06 17:20:32.064287906 -0500
@@ -1,13 +1,13 @@
-CFLAGS= -Wall -Wshadow -Wwrite-strings -Wsign-compare -Wfloat-equal \
- -Wconversion -Wmissing-noreturn -Wbad-function-cast \
- -Wmissing-prototypes -Winline -Wredundant-decls -O3
+#CFLAGS= -Wall -Wshadow -Wwrite-strings -Wsign-compare -Wfloat-equal \
+# -Wconversion -Wmissing-noreturn -Wbad-function-cast \
+# -Wmissing-prototypes -Winline -Wredundant-decls -O3
all: pdfcrack
pdfcrack: main.o rc4.o md5.o pdfcrack.o pdfparser.o passwords.o common.o \
benchmark.o
- gcc $(CFLAGS) -o $@ $+
- strip $@
+ ${CC} $(CFLAGS) -o $@ $+
+# strip $@
pdfreader: pdfparser.o pdfreader.o common.o
gcc $(CFLAGS) -o $@ $+
@@ -17,4 +17,4 @@
rm -f pdfcrack pdfreader testreader *.o
%.o: %.c
- gcc $(CFLAGS) -c -o $@ $+
+ ${CC} $(CFLAGS) -c -o $@ $+