diff options
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/libpng-1.2.19/sources.make | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/distrib/libpng-1.2.19/sources.make b/distrib/libpng-1.2.19/sources.make index a9b37ba..f512f7b 100644 --- a/distrib/libpng-1.2.19/sources.make +++ b/distrib/libpng-1.2.19/sources.make @@ -4,14 +4,19 @@ LIBPNG_SOURCES := png.c pngerror.c pngget.c pngmem.c pngpread.c pngread.c \ pngrio.c pngrtran.c pngrutil.c pngset.c pngtrans.c pngvcrd.c pngwio.c \ pngwrite.c pngwtran.c pngwutil.c +# Enable MMX code path for x86, except on Darwin where it fails +PNG_MMX := no +ifeq ($(HOST_ARCH),x86) + PNG_MMX := yes +endif ifeq ($(HOST_OS),darwin) - LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE + PNG_MMX := no +endif + +ifeq ($(PNG_MMX),yes) + LIBPNG_SOURCES += pnggccrd.c else - ifeq ($(HOST_ARCH),ppc) - LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE - else - LIBPNG_SOURCES += pnggccrd.c - endif + LIBPNG_CFLAGS += -DPNG_NO_MMX_CODE endif LIBPNG_SOURCES := $(LIBPNG_SOURCES:%=$(LIBPNG_DIR)/%) |