mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
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:
@@ -12,6 +12,7 @@
|
||||
|
||||
# where "make install" puts libpng.a, libpng16.dylib, png.h, pngconf.h,
|
||||
# and pnglibconf.h
|
||||
|
||||
prefix=/usr/local
|
||||
exec_prefix=$(prefix)
|
||||
|
||||
@@ -39,7 +40,10 @@ LN_SF=ln -sf
|
||||
CP=cp
|
||||
RM_F=rm -f
|
||||
|
||||
CPPFLAGS=-I$(ZLIBINC)
|
||||
NOHWOPT=-DPNG_ARM_NEON_OPT=0 -DPNG_MIPS_MSA_OPT=0 \
|
||||
-DPNG_POWERPC_VSX_OPT=0 -DPNG_INTEL_SSE_OPT=0
|
||||
DEFS=$(NOHWOPT)
|
||||
CPPFLAGS=-I$(ZLIBINC) $(DEFS)
|
||||
CFLAGS=-O3 -funroll-loops -Wall -Wextra -Wundef
|
||||
LDFLAGS=-L. -L$(ZLIBLIB) -lpng16 -lz
|
||||
|
||||
|
||||
Reference in New Issue
Block a user