summaryrefslogtreecommitdiff
path: root/scripts/makefile.clang
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/makefile.clang')
-rw-r--r--scripts/makefile.clang6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/makefile.clang b/scripts/makefile.clang
index fe0544a2b..2e154236f 100644
--- a/scripts/makefile.clang
+++ b/scripts/makefile.clang
@@ -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