Fix build on FreeBSD 9.x

gdaldither.cpp: In function 'int FindNearestColor(int, int*, int, int, int)':
gdaldither.cpp:534: note: use -flax-vector-conversions to permit conversions
between vectors with differing element types or numbers of subparts
gdaldither.cpp:534: error: cannot convert 'int __vector__' to 'long long int
 __vector__' for argument '1' to 'long long int __vector__
 __builtin_ia32_psrlqi128(long long int __vector__, int)'
gdaldither.cpp:539: error: cannot convert 'int __vector__' to 'long long int
 __vector__' for argument '1' to 'long long int __vector__
 __builtin_ia32_psrlqi128(long long int __vector__, int)'
../GDALmake.opt:582: recipe for target 'gdaldither.o' failed
gmake[1]: *** [gdaldither.o] Error 1

PR:		205701
Submitted by:	myself
Approved by:	maintainer timeout
This commit is contained in:
Pawel Pekala 2016-01-13 15:52:17 +00:00
parent 2de70bd150
commit 43b3e4bf2c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=406052

View file

@ -30,7 +30,7 @@ OPTIONS_RADIO_PDF= PODOFO POPPLER
PCRE_DESC= Regular expression support for SQLite
SPATIALITE_DESC=SpatiaLite support
CFLAGS+= -fPIC
CFLAGS+= -fPIC -flax-vector-conversions
CONFIGURE_ARGS= --datadir=${DATADIR} \
--enable-static=yes \
--with-geotiff=${LOCALBASE} \