re: fix build errors on mipsel targets
authorSebastian Kemper <sebastian_ml@gmx.net>
Wed, 13 Dec 2017 18:29:01 +0000 (19:29 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Wed, 13 Dec 2017 18:29:06 +0000 (19:29 +0100)
commitc22c60b9fd32d19030044266e1d61205c7c2150f
tree522f57b6aa153de7e014fd678132f563775c0bd0
parent94b7a831afb434e8d26d638caf371f27fa6f06d4
re: fix build errors on mipsel targets

On most mipsel targets re fails to build because the re Makefile adds
"-march=mips32" to CFLAGS:

Assembler messages:
Error: -mips32r2 conflicts with the other architecture options, which imply -mips32
src/sip/addr.c:1:0: error: '-mips32r2' conflicts with the other architecture options, which specify a mips32 processor
 /**
 ^
Makefile:92: recipe for target 'build-mipsel/sip/addr.o' failed

Fix this by preventing re from adding to OpenWrt CFLAGS.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
libs/re/patches/005-fix-builds-for-mipsel-targets.patch [new file with mode: 0644]