[packages] libnatpmp: add the libnatpmp library
[openwrt/svn-archive/archive.git] / libs / libnatpmp / patches / 001-cross_compile.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -4,14 +4,15 @@
4 # (c) 2007-2011 Thomas Bernard
5 # http://miniupnp.free.fr/libnatpmp.html
6
7 -OS = $(shell uname -s)
8 +OS = Linux
9 CC = gcc
10 INSTALL = install
11
12 # APIVERSION is used in soname
13 APIVERSION = 1
14 LDFLAGS = -Wl,--no-undefined
15 -CFLAGS = -O -fPIC -Wall -DENABLE_STRNATPMPERR
16 +COPTS = -O
17 +CFLAGS = $(COPTS) -fPIC -Wall -DENABLE_STRNATPMPERR
18
19 LIBOBJS = natpmp.o getgateway.o
20