diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2011-07-22 18:45:31 +0000 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2011-07-22 18:45:31 +0000 |
commit | 782bc8ffa929a772b7b975908e8e205a88989f0a (patch) | |
tree | 046fa2d377017bd4c888ac366203f2777d8831b2 /net-libs/libnatpmp/files | |
parent | Bump for #349283, remove old (diff) | |
download | historical-782bc8ffa929a772b7b975908e8e205a88989f0a.tar.gz historical-782bc8ffa929a772b7b975908e8e205a88989f0a.tar.bz2 historical-782bc8ffa929a772b7b975908e8e205a88989f0a.zip |
Initial commit to satisfy tor's net-pmp USE flag
Package-Manager: portage-2.1.10.3/cvs/Linux x86_64
Diffstat (limited to 'net-libs/libnatpmp/files')
-rw-r--r-- | net-libs/libnatpmp/files/respect-FLAGS.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-libs/libnatpmp/files/respect-FLAGS.patch b/net-libs/libnatpmp/files/respect-FLAGS.patch new file mode 100644 index 000000000000..c5b856e01de6 --- /dev/null +++ b/net-libs/libnatpmp/files/respect-FLAGS.patch @@ -0,0 +1,31 @@ +diff -Naur libnatpmp-20110715.orig//Makefile libnatpmp-20110715/Makefile +--- libnatpmp-20110715.orig//Makefile 2011-06-22 18:28:00.000000000 -0400 ++++ libnatpmp-20110715/Makefile 2011-07-22 12:30:48.000000000 -0400 +@@ -4,6 +4,9 @@ + # (c) 2007-2011 Thomas Bernard + # http://miniupnp.free.fr/libnatpmp.html + ++GENTOO_CFLAGS := $(CFLAGS) ++GENTOO_LDFLAGS := $(LDFLAGS) ++ + OS = $(shell uname -s) + CC = gcc + INSTALL = install +@@ -11,6 +14,7 @@ + # APIVERSION is used in soname + APIVERSION = 1 + #LDFLAGS = -Wl,--no-undefined ++LDFLAGS = + CFLAGS = -O -fPIC -Wall -DENABLE_STRNATPMPERR + + LIBOBJS = natpmp.o getgateway.o +@@ -36,6 +40,9 @@ + INSTALLDIRLIB = $(INSTALLPREFIX)/lib + INSTALLDIRBIN = $(INSTALLPREFIX)/bin + ++CFLAGS += $(GENTOO_CFLAGS) ++LDFLAGS += $(GENTOO_LDFLAGS) ++ + .PHONY: all clean depend install cleaninstall installpythonmodule + + all: $(STATICLIB) $(SHAREDLIB) $(EXECUTABLES) |