From f74213cdfe31c3d95a817c7d3bdcd8a74253828a Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Mon, 16 Apr 2018 00:51:07 +0000 Subject: [PATCH] MFH: r467449 graphics/freeimage: unbreak consumers on arm* with NEON $ echo 'int main() {}' | cc -xc - -o /dev/null -L/usr/local/lib -lfreeimage -lm /usr/local/lib/libfreeimage.so: undefined reference to `png_init_filter_functions_neon' cc: error: linker command failed with exit code 1 (use -v to see invocation) Approved by: ports-secteam blanket --- graphics/freeimage/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/freeimage/Makefile b/graphics/freeimage/Makefile index 0256a7f23672..1cd05b0ccd19 100644 --- a/graphics/freeimage/Makefile +++ b/graphics/freeimage/Makefile @@ -3,7 +3,7 @@ PORTNAME= freeimage PORTVERSION= 3.16.0 -PORTREVISION= 3 +PORTREVISION= 4 # Version 3.17.0 is available, but does not build on i386 (and probably # other 32-bit arches) without some not-quite-trivial patching. If one # decides to update the port, please make sure 32-bit builds are tested! @@ -22,7 +22,7 @@ USE_LDCONFIG= yes WRKSRC= ${WRKDIR}/FreeImage MAKE_ARGS= CC="${CC}" CPP="${CPP}" CXX="${CXX}" -CFLAGS+= -fexceptions -fvisibility=hidden +CFLAGS+= -DPNG_ARM_NEON_OPT=0 -fexceptions -fvisibility=hidden CFLAGS_aarch64= -fPIC CFLAGS_amd64= -fPIC