scripts: Disable the hardware-optimized compilation in legacy makefiles

Fix the legacy makefile builds on ARM, MIPS and PowerPC, where
hardware-optimized compilation was enabled by default in the generic
source files, but without including the machine-specific source files.

Delete scripts/makefile.linux-opt.
This commit is contained in:
Cosmin Truta
2022-09-14 21:35:33 +03:00
parent c64655d058
commit b60656ecdc
6 changed files with 23 additions and 262 deletions

View File

@@ -40,9 +40,11 @@ MV_F = mv -f
RM_F = rm -f
AWK = awk
NOHWOPT = -DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \
-DPNG_POWERPC_VSX_OPT=0 -DPNG_INTEL_SSE_OPT=0
DFNFLAGS = # DFNFLAGS contains -D options to use in the libpng build
DFA_EXTRA = # extra files that can be used to control configuration
CPPFLAGS = -I$(ZLIBINC) # -DPNG_DEBUG=5
CPPFLAGS = -I$(ZLIBINC) $(NOHWOPT) # -DPNG_DEBUG=5
CFLAGS = -O # -g
LDFLAGS = -L$(ZLIBLIB) # -g
LIBS = -lz -lm