DEBUGFLAGS=-g
ifeq (${ARCH}, i386)
- EXT_OPTIONS=-msse2 -mssse3
-endif
-
-ifeq (${ARCH}, amd64)
- EXT_OPTIONS=-mssse3
+ EXT_OPTIONS=-msse2
endif
xOPT_LEVEL=-O2
DEFS=-D_MT -DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
DEBUGFLAGS=-g
-CFLAGS=$(xOPT_LEVEL) -msse2 -mssse3 -w -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
+CFLAGS=$(xOPT_LEVEL) -msse2 -w -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
LDFLAGS=-Wl,--dynamicbase -Wl,--nxcompat -static-libgcc -static-libstdc++
ifneq (${USE_IPV6}, -)
DEFS=-DWIN32 -D_WINDOWS -DBOOST_THREAD_USE_LIB -DBOOST_SPIRIT_THREADSAFE -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS
DEBUGFLAGS=-g
-CFLAGS=-mthreads $(xOPT_LEVEL) -msse2 -mssse3 -w -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
+CFLAGS=-mthreads $(xOPT_LEVEL) -msse2 -w -Wall -Wextra -Wno-ignored-qualifiers -Wformat -Wformat-security -Wno-unused-parameter $(DEBUGFLAGS) $(DEFS) $(INCLUDEPATHS)
LDFLAGS=-Wl,--dynamicbase -Wl,--nxcompat -Wl,--large-address-aware -static
ifneq (${USE_IPV6}, -)
# Compile for maximum compatibility and smallest size.
# This requires that dependencies are compiled
# the same way.
-CFLAGS = -O2 -msse2 -mssse3
+CFLAGS = -O2 -msse2
else
-CFLAGS = -g -msse2 -mssse3
+CFLAGS = -g -msse2
endif
# ppc doesn't work because we don't support big-endian
ifeq (${ARCH}, i686)
- EXT_OPTIONS=-msse2 -mssse3
-endif
-
-ifeq (${ARCH}, x86_64)
- EXT_OPTIONS=-mssse3
+ EXT_OPTIONS=-msse2
endif
xOPT_LEVEL=-O2