Skip to content
Snippets Groups Projects
  • Sebastian Kemper's avatar
    c22c60b9
    re: fix build errors on mipsel targets · c22c60b9
    Sebastian Kemper authored
    
    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: default avatarSebastian Kemper <sebastian_ml@gmx.net>
    c22c60b9
    History
    re: fix build errors on mipsel targets
    Sebastian Kemper authored
    
    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: default avatarSebastian Kemper <sebastian_ml@gmx.net>
005-fix-builds-for-mipsel-targets.patch 263 B
--- a/mk/re.mk
+++ b/mk/re.mk
@@ -448,11 +448,6 @@ endif
 
 CFLAGS	+= -DARCH=\"$(ARCH)\"
 
-ifeq ($(ARCH),mipsel)
-CFLAGS += -march=mips32
-endif
-
-
 ##############################################################################
 #
 # External libraries section