miniupnpd ported to kamikaze from xwrts whiterussian package
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5653 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
37
net/miniupnpd/patches/001-makefile-tweaks.patch
Normal file
37
net/miniupnpd/patches/001-makefile-tweaks.patch
Normal file
@ -0,0 +1,37 @@
|
||||
--- miniupnpd.orig/Makefile.openwrt 2006-11-23 06:31:06.000000000 -0600
|
||||
+++ miniupnpd/Makefile.openwrt 2006-11-26 17:16:20.000000000 -0600
|
||||
@@ -2,12 +2,13 @@
|
||||
# http://miniupnp.free.fr/
|
||||
# Author : Thomas Bernard
|
||||
# for use with GNU Make
|
||||
-#CFLAGS = -Wall -O -D_GNU_SOURCE -g
|
||||
-CFLAGS = -Wall -Os -D_GNU_SOURCE
|
||||
-CC = mipsel-linux-gcc
|
||||
+include $(TOPDIR)/rules.mk
|
||||
+CC = $(TARGET_CC)
|
||||
+CFLAGS = $(TARGET_CFLAGS)
|
||||
+CFLAGS += -D_GNU_SOURCE
|
||||
RM = rm -f
|
||||
INSTALL = install
|
||||
-IPTABLESINC=/home/nanard/code/openwrt/iptables-1.3.3/include
|
||||
+IPTABLESINC=$(STAGING_DIR)/usr/include
|
||||
|
||||
BASEOBJS = miniupnpd.o upnphttp.o upnpdescgen.o upnpsoap.o \
|
||||
../miniupnpc/upnpreplyparse.o ../miniupnpc/minixml.o \
|
||||
@@ -15,7 +16,7 @@
|
||||
|
||||
LNXOBJS = linux/getifstats.o linux/iptcrdr.o
|
||||
|
||||
-LIBS = /home/nanard/code/openwrt/iptables-1.3.3/libiptc/libiptc.a
|
||||
+LIBS = $(STAGING_DIR)/usr/lib/libiptc.a
|
||||
|
||||
TESTUPNPDESCGENOBJS = testupnpdescgen.o upnpdescgen.o
|
||||
|
||||
@@ -32,6 +33,7 @@
|
||||
@echo no install for now...
|
||||
|
||||
miniupnpd: $(BASEOBJS) $(LNXOBJS) $(LIBS)
|
||||
+ $(CC) $(CFLAGS) -o $@ $(BASEOBJS) $(LNXOBJS) $(LIBS)
|
||||
|
||||
testupnpdescgen: $(TESTUPNPDESCGENOBJS)
|
||||
|
Reference in New Issue
Block a user