summaryrefslogtreecommitdiff
path: root/scripts/makefile.gcc
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makefile.gcc')
-rw-r--r--scripts/makefile.gcc6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/makefile.gcc b/scripts/makefile.gcc
index e2ea8972a..b215a70fb 100644
--- a/scripts/makefile.gcc
+++ b/scripts/makefile.gcc
@@ -19,10 +19,14 @@ RANLIB = ranlib
CP = cp
RM_F = rm -f
+# Compiler and linker flags
+NOHWOPT = -DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \
+ -DPNG_POWERPC_VSX_OPT=0 -DPNG_INTEL_SSE_OPT=0
WARNMORE = -Wwrite-strings -Wpointer-arith -Wshadow \
-Wmissing-declarations -Wtraditional -Wcast-align \
-Wstrict-prototypes -Wmissing-prototypes # -Wconversion
-CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5
+DEFS = $(NOHWOPT)
+CPPFLAGS = -I$(ZLIBINC) $(DEFS) # -DPNG_DEBUG=5
CFLAGS = -O2 -Wall -Wextra -Wundef # $(WARNMORE) -g
LDFLAGS = -L$(ZLIBLIB) # -g
LIBS = -lz -lm