diff -Naur libnatpmp-20110808.1//Makefile libnatpmp-20110808/Makefile --- libnatpmp-20110808.1//Makefile 2011-06-22 18:28:00.000000000 -0400 +++ libnatpmp-20110808/Makefile 2011-12-17 06:41:21.000000000 -0500 @@ -4,14 +4,17 @@ # (c) 2007-2011 Thomas Bernard # http://miniupnp.free.fr/libnatpmp.html +GENTOO_CFLAGS := $(CFLAGS) +GENTOO_LDFLAGS := $(LDFLAGS) + OS = $(shell uname -s) -CC = gcc +CC ?= gcc INSTALL = install # APIVERSION is used in soname APIVERSION = 1 -#LDFLAGS = -Wl,--no-undefined -CFLAGS = -O -fPIC -Wall -DENABLE_STRNATPMPERR +LDFLAGS = $(GENTOO_LDFLAGS) +CFLAGS = -O -fPIC -Wall -DENABLE_STRNATPMPERR $(GENTOO_CFLAGS) LIBOBJS = natpmp.o getgateway.o