summaryrefslogtreecommitdiff
path: root/app-crypt/nasty/files/nasty-0.6-flags.patch
diff options
context:
space:
mode:
Diffstat (limited to 'app-crypt/nasty/files/nasty-0.6-flags.patch')
-rw-r--r--app-crypt/nasty/files/nasty-0.6-flags.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/app-crypt/nasty/files/nasty-0.6-flags.patch b/app-crypt/nasty/files/nasty-0.6-flags.patch
new file mode 100644
index 00000000000..271bbaab498
--- /dev/null
+++ b/app-crypt/nasty/files/nasty-0.6-flags.patch
@@ -0,0 +1,22 @@
+--- Makefile
++++ Makefile
+@@ -1,15 +1,16 @@
+ VERSION=0.6
+
+ DEBUG=-g # -pg
+-CFLAGS+=-Wall -O2 -DVERSION=\"${VERSION}\" $(DEBUG)
+-LDFLAGS=-lgpgme $(DEBUG)
++CPPFLAGS+=-DVERSION=\"${VERSION}\" -D_FILE_OFFSET_BITS=64
++CFLAGS+=-Wall $(DEBUG) `gpgme-config --cflags`
++LIBS=`gpgme-config --libs`
+
+ OBJS=nasty.o
+
+ all: nasty
+
+ nasty: $(OBJS)
+- $(CC) -Wall -W $(OBJS) $(LDFLAGS) -o nasty
++ $(CC) $(LDFLAGS) $(OBJS) -o nasty $(LIBS)
+
+ install: nasty
+ cp nasty /usr/bin