From a2231a6a1d24ee10a43473829ae72762ca016ab5 Mon Sep 17 00:00:00 2001 From: DRC Date: Tue, 16 Feb 2010 23:26:53 +0000 Subject: Fix build on Sun Studio git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3987 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- common/jpeg/simd/Makefile.am | 3 +-- common/jpeg/simd/nasm_lt.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'common') diff --git a/common/jpeg/simd/Makefile.am b/common/jpeg/simd/Makefile.am index e57c4772..a114c371 100644 --- a/common/jpeg/simd/Makefile.am +++ b/common/jpeg/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/common/jpeg/simd/nasm_lt.sh b/common/jpeg/simd/nasm_lt.sh index b112862a..7ba52534 100755 --- a/common/jpeg/simd/nasm_lt.sh +++ b/common/jpeg/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 -- cgit v1.2.3