prevent madwifi from building on UML
[openwrt.git] / package / hostapd / patches / 001-cross_compile_fix.patch
1 Common subdirectories: hostapd-0.5.2/logwatch and hostapd-0.5.2.new/logwatch
2 Index: hostapd-0.5.7/Makefile
3 ===================================================================
4 --- hostapd-0.5.7.orig/Makefile 2007-06-04 13:22:31.790022464 +0200
5 +++ hostapd-0.5.7/Makefile 2007-06-04 13:22:31.856012432 +0200
6 @@ -2,7 +2,7 @@
7 DIR_WPA_SUPPLICANT=.
8
9 ifndef CFLAGS
10 -CFLAGS = -MMD -O2 -Wall -g
11 +CFLAGS = -MMD $(OPTFLAGS) $(CPPFLAGS)
12 endif
13
14 # define HOSTAPD_DUMP_STATE to include SIGUSR1 handler for dumping state to
15 @@ -336,7 +336,7 @@
16 for i in $(ALL); do cp $$i /usr/local/bin/$$i; done
17
18 hostapd: $(OBJS)
19 - $(CC) -o hostapd $(OBJS) $(LIBS)
20 + $(CC) -o hostapd $(OBJS) $(LDFLAGS) $(LIBS)
21
22 driver_conf.c: Makefile .config
23 rm -f driver_conf.c
24 @@ -400,10 +400,10 @@
25 endif
26
27 nt_password_hash: $(NOBJS)
28 - $(CC) -o nt_password_hash $(NOBJS) $(LIBS_n)
29 + $(CC) -o nt_password_hash $(NOBJS) $(LDFLAGS) $(LIBS_n)
30
31 hlr_auc_gw: $(HOBJS)
32 - $(CC) -o hlr_auc_gw $(HOBJS) $(LIBS_h)
33 + $(CC) -o hlr_auc_gw $(HOBJS) $(LDFLAGS) $(LIBS_h)
34
35 clean:
36 rm -f core *~ *.o hostapd hostapd_cli nt_password_hash hlr_auc_gw
This page took 0.042049 seconds and 5 git commands to generate.