From 37cebe08af771cf6c27b05f4868ca1a1d1ed04b5 Mon Sep 17 00:00:00 2001 From: z3APA3A <3APA3A@3proxy.ru> Date: Fri, 7 Dec 2018 14:26:11 +0300 Subject: [PATCH] Disable strict aliasing and add stripping for MIPS cross compile example makefile --- Makefile.openwrt-mips | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.openwrt-mips b/Makefile.openwrt-mips index 8965dd7..7a213df 100644 --- a/Makefile.openwrt-mips +++ b/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