copy trunk to buildroot-ng branch
[15.05/openwrt.git] / package / elhttp / patches / 01-cross-compile.patch
1 --- elhttp-0.22.orig/Makefile   2004-06-18 15:32:17.000000000 +0200
2 +++ elhttp-0.22/Makefile        2006-02-13 23:11:35.000000000 +0100
3 @@ -1,13 +1,7 @@
4 -
5 +all: linux
6  linux:
7 -       gcc -O -W -Wall -o elhttp elhttp.c
8 -       strip elhttp
9 -
10 -sunos:
11 -       gcc -O -W -Wall -o elhttp elhttp.c -lsocket -lnsl
12 -       strip elhttp
13 -
14 -unix:
15 -       cc -O -o elhttp elhttp.c
16 -       strip elhttp
17 +       $(CC) -O -W -Wall -o elhttp elhttp.c
18  
19 +install:
20 +       install -d -m0755 $(DESTDIR)/usr/sbin
21 +       install -m0755 elhttp $(DESTDIR)/usr/sbin/