reported by buildbots (sunxi,omap)

 on platforms with VFP/hardfloat ld fails with several:
 wash uses VFP register arguments, lwe/libiw.a(iwlib.so) does not

 append to CFLAGS instead of overwrite

Signed-off-by: Dirk Neukirchen <dirkneukirc...@web.de>
---
 net/reaver/patches/0100-fix_VFP_CFLAGS.patch | 63 ++++++++++++++++++++++++++++
 1 file changed, 63 insertions(+)
 create mode 100644 net/reaver/patches/0100-fix_VFP_CFLAGS.patch

diff --git a/net/reaver/patches/0100-fix_VFP_CFLAGS.patch 
b/net/reaver/patches/0100-fix_VFP_CFLAGS.patch
new file mode 100644
index 0000000..2ba03d6
--- /dev/null
+++ b/net/reaver/patches/0100-fix_VFP_CFLAGS.patch
@@ -0,0 +1,63 @@
+--- a/src/libwps/Makefile
++++ b/src/libwps/Makefile
+@@ -1,5 +1,5 @@
+ CC=gcc
+-CFLAGS=-Wall
++CFLAGS+=-Wall
+ 
+ libwps.o:
+       $(CC) $(CFLAGS) libwps.c -c
+--- a/src/wps/Makefile
++++ b/src/wps/Makefile
+@@ -4,31 +4,31 @@ INC=-I../utils -I ../
+ all: wps_attr_build.o wps_attr_parse.o wps_attr_process.o wps.o wps_common.o 
wps_dev_attr.o wps_enrollee.o wps_registrar.o wps_ufd.o
+ 
+ wps_attr_build.o:
+-      $(CC) $(INC) wps_attr_build.c -c
++      $(CC) $(CFLAGS) $(INC) wps_attr_build.c -c
+ 
+ wps_attr_parse.o:
+-      $(CC) $(INC) wps_attr_parse.c -c
++      $(CC) $(CFLAGS) $(INC) wps_attr_parse.c -c
+ 
+ wps_attr_process.o:
+-      $(CC) $(INC) wps_attr_process.c -c
++      $(CC) $(CFLAGS) $(INC) wps_attr_process.c -c
+ 
+ wps.o:
+-      $(CC) $(INC) wps.c -c
++      $(CC) $(CFLAGS) $(INC) wps.c -c
+ 
+ wps_common.o:
+-      $(CC) $(INC) wps_common.c -c
++      $(CC) $(CFLAGS) $(INC) wps_common.c -c
+ 
+ wps_dev_attr.o:
+-      $(CC) $(INC) wps_dev_attr.c -c
++      $(CC) $(CFLAGS) $(INC) wps_dev_attr.c -c
+ 
+ wps_enrollee.o:
+-      $(CC) $(INC) wps_enrollee.c -c
++      $(CC) $(CFLAGS) $(INC) wps_enrollee.c -c
+ 
+ wps_registrar.o:
+-      $(CC) $(INC) wps_registrar.c -c
++      $(CC) $(CFLAGS) $(INC) wps_registrar.c -c
+ 
+ wps_ufd.o:
+-      $(CC) $(INC) wps_ufd.c -c
++      $(CC) $(CFLAGS) $(INC) wps_ufd.c -c
+ 
+ clean:
+       rm -f *.o
+--- a/src/lwe/Makefile
++++ b/src/lwe/Makefile
+@@ -102,7 +102,7 @@ ifdef BUILD_WE_ESSENTIAL
+ endif
+ 
+ # Other flags
+-CFLAGS=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
++CFLAGS+=-Os -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow \
+       -Wpointer-arith -Wcast-qual -Winline -I.
+ #CFLAGS=-O2 -W -Wall -Wstrict-prototypes -I.
+ DEPFLAGS=-MMD
-- 
1.9.3


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to