From: DRC Date: Tue, 16 Feb 2010 22:34:12 +0000 (+0000) Subject: Fix build with Sun Studio X-Git-Tag: 0.0.90~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8a26fdea23f56886b099110a2a8c82ff40f0e070;p=libjpeg-turbo Fix build with Sun Studio git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@113 632fc199-4ca6-4c93-a231-07263d6284db --- diff --git a/simd/Makefile.am b/simd/Makefile.am index e57c477..a114c37 100644 --- a/simd/Makefile.am +++ b/simd/Makefile.am @@ -55,5 +55,4 @@ AM_CPPFLAGS = -I$(top_srcdir) $(LIBTOOL) --mode=compile --tag NASM $(srcdir)/nasm_lt.sh $(NASM) $(NAFLAGS) -I$(srcdir) $< -o $@ jsimdcfg.inc: $(srcdir)/jsimdcfg.inc.h ../jpeglib.h ../jconfig.h ../jmorecfg.h - $(CPP) -I$(top_builddir) -I$(top_builddir)/simd $(srcdir)/jsimdcfg.inc.h | $(EGREP) ^[\;%] | sed 's%_cpp_protection_%%' > $@ - + $(CPP) -I$(top_builddir) -I$(top_builddir)/simd $(srcdir)/jsimdcfg.inc.h | $(EGREP) "^[\;%]|^\ %" | sed 's%_cpp_protection_%%' | sed 's@% define@%define@g' > $@ diff --git a/simd/nasm_lt.sh b/simd/nasm_lt.sh index b112862..7ba5253 100755 --- a/simd/nasm_lt.sh +++ b/simd/nasm_lt.sh @@ -5,7 +5,7 @@ o_opt=no pic=no while [ $# -gt 0 ]; do case "$1" in - -DPIC|-fPIC|-fpic) + -DPIC|-fPIC|-fpic|-Kpic|-KPIC) if [ "$pic" != "yes" ] ; then command="$command -DPIC" pic=yes