summaryrefslogtreecommitdiff
path: root/openwrt/package/iptraf/patches/iptraf-2.7.0-cross_compile.patch
diff options
context:
space:
mode:
authornico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-04 20:45:16 +0000
committernico <nico@3c298f89-4303-0410-b956-a3cf2f4a3e73>2005-10-04 20:45:16 +0000
commit910b36d0d8c1b4895555d70b14b8bbba760c5065 (patch)
tree76d5caa0ef88b3dd351a88f3d3e1c0a91ba5c36e /openwrt/package/iptraf/patches/iptraf-2.7.0-cross_compile.patch
parentf843bbbd1a6b835c94e229c960837333f2e12d55 (diff)
add iptraf (thanks to Thomas Reifferscheid)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2048 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'openwrt/package/iptraf/patches/iptraf-2.7.0-cross_compile.patch')
-rw-r--r--openwrt/package/iptraf/patches/iptraf-2.7.0-cross_compile.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/openwrt/package/iptraf/patches/iptraf-2.7.0-cross_compile.patch b/openwrt/package/iptraf/patches/iptraf-2.7.0-cross_compile.patch
new file mode 100644
index 0000000000..6c0119df73
--- /dev/null
+++ b/openwrt/package/iptraf/patches/iptraf-2.7.0-cross_compile.patch
@@ -0,0 +1,29 @@
+diff -ruN iptraf-2.7.0-old/support/Makefile iptraf-2.7.0-new/support/Makefile
+--- iptraf-2.7.0-old/support/Makefile 2001-11-27 09:37:11.000000000 +0100
++++ iptraf-2.7.0-new/support/Makefile 2005-10-03 18:40:40.000000000 +0200
+@@ -3,16 +3,21 @@
+ OBJS = input.o menurt.o listbox.o winops.o labels.o \
+ msgboxes.o
+
++AR=ar
++CC=cc
++RANLIB=ranlib
++CFLAGS= -O2 -g -fPIC
++
+ all: libtextbox.a
+
+ libtextbox.a: $(OBJS)
+ rm -rf libtextbox.a
+- ar cq libtextbox.a $(OBJS)
+- ranlib libtextbox.a
+-# gcc -shared -o libtextbox.so $(OBJS)
++ $(AR) cq libtextbox.a $(OBJS)
++ $(RANLIB) libtextbox.a
++# $(CC) -shared -o libtextbox.so $(OBJS)
+
+ %.o: %.c *.h
+- gcc -O2 -g -Wall -fPIC $(INCLUDEDIR) -c -o $*.o $<
++ $(CC) $(CFLAGS) -Wall $(INCLUDEDIR) -c -o $*.o $<
+
+ clean:
+ rm -rf *.o *~ libtextbox.a libtextbox.so