let ipkg fail when a package file to be installed is not found
[openwrt/openwrt.git] / openwrt / package / hostapd / patches / 001-cross_compile_fix.patch
1 Common subdirectories: hostapd-0.5.2/logwatch and hostapd-0.5.2.new/logwatch
2 diff -u hostapd-0.5.2/Makefile hostapd-0.5.2.new/Makefile
3 --- hostapd-0.5.2/Makefile 2006-03-20 03:20:09.000000000 +0000
4 +++ hostapd-0.5.2.new/Makefile 2006-03-21 22:25:23.803473592 +0000
5 @@ -3,7 +3,7 @@
6 DIR_HOSTAP=.
7
8 ifndef CFLAGS
9 -CFLAGS = -MMD -O2 -Wall -g
10 +CFLAGS = -MMD $(OPTFLAGS) $(CPPFLAGS)
11 endif
12
13 # define HOSTAPD_DUMP_STATE to include SIGUSR1 handler for dumping state to
14 @@ -266,7 +266,7 @@
15 for i in $(ALL); do cp $$i /usr/local/bin/$$i; done
16
17 hostapd: $(OBJS)
18 - $(CC) -o hostapd $(OBJS) $(LIBS)
19 + $(CC) -o hostapd $(OBJS) $(LDFLAGS) $(LIBS)
20
21 driver_conf.c: Makefile .config
22 rm -f driver_conf.c
23 @@ -330,10 +330,10 @@
24 endif
25
26 nt_password_hash: $(NOBJS)
27 - $(CC) -o nt_password_hash $(NOBJS) $(LIBS_n)
28 + $(CC) -o nt_password_hash $(NOBJS) $(LDFLAGS) $(LIBS_n)
29
30 hlr_auc_gw: $(HOBJS)
31 - $(CC) -o hlr_auc_gw $(HOBJS) $(LIBS_h)
32 + $(CC) -o hlr_auc_gw $(HOBJS) $(LDFLAGS) $(LIBS_h)
33
34 clean:
35 rm -f core *~ *.o hostapd hostapd_cli nt_password_hash hlr_auc_gw