Bläddra i källkod

Disable strict aliasing and add stripping for MIPS cross compile example makefile

z3APA3A 7 år sedan
förälder
incheckning
37cebe08af
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      Makefile.openwrt-mips

+ 2 - 2
Makefile.openwrt-mips

@@ -10,11 +10,11 @@
 BUILDDIR = ../bin/
 CC = mips-openwrt-linux-gcc
 
-CFLAGS = -g -O2 -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER
+CFLAGS = -g -O2 -fno-strict-aliasing -c -pthread -DGETHOSTBYNAME_R -D_THREAD_SAFE -D_REENTRANT -DNOODBC -DWITH_STD_MALLOC -DFD_SETSIZE=4096 -DWITH_POLL -DWITH_NETFILTER
 COUT = -o 
 LN = mips-openwrt-linux-gcc
 DCFLAGS = -fpic
-LDFLAGS = -O2 -pthread
+LDFLAGS = -O2 -fno-strict-aliasing -pthread -s
 DLFLAGS = -shared
 DLSUFFICS = .ld.so
 # -lpthreads may be reuqired on some platforms instead of -pthreads