10318N/A#
10318N/A# Intel SSE2 ISA settings for Solaris packages
10318N/A#
10318N/A# Copyright 2007 Sun Microsystems, Inc.
10318N/A#
10318N/A# Solaris.inc must be included before this file
10318N/A
18546N/A%define bld_arch pentium_pro+mmx
18546N/A%define sse2_arch pentium_pro+mmx
10318N/A
11330N/A%define opt_arch64 0
11330N/A%define opt_sparcv9 0
11330N/A%define opt_amd64 0
10318N/A%define opt_sse2 1
10318N/A%define can_isaexec 1
10318N/A%define gtk_doc_option --disable-gtk-doc
10318N/A
11313N/A%if %option_with_gnu_iconv
11313N/A%define arch_ldadd -Wl,-zignore -lgnuintl -lgnuiconv -xarch=sse2 -L%{_libdir} -R%{_libdir} -R/usr/gnu/lib
11313N/A%else
10318N/A%define arch_ldadd -xarch=sse2 -L%{_libdir} -R%{_libdir}
11313N/A%endif
10318N/A
10318N/A%if %debug_build
10318N/A%define pkgbuild_postprocess /bin/true
10318N/A%define _cc_opt_level -g
10318N/A%define _cxx_opt_level -g
10318N/A%define _gcc_opt_level -g
10318N/A%define _gxx_opt_level -g
10318N/A%else
10318N/A%if %cc_is_gcc
10318N/A%define _gcc_opt_level -O3
10318N/A%define _gxx_opt_level -O3
10318N/A%else
10489N/A%define _cc_opt_level -xO4 -xspace -xvector
10489N/A%define _cxx_opt_level -xO3 -xspace -xvector
10318N/A%endif
10318N/A%endif
10318N/A
10328N/A%define gcc_optflags %_gcc_opt_level -mcpu=pentiumpro -mtune=pentiumpro -msse2 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
10328N/A%define gcc_cxx_optflags %_gxx_opt_level -mcpu=pentiumpro -mtune=pentiumpro -msse2 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
10318N/A
10489N/A%define suncc_optflags -i %_cc_opt_level -xstrconst -xarch=sse2 -mr -xregs=no%%frameptr
10489N/A%define suncc_cxx_optflags -i %_cxx_opt_level -xarch=sse2 -mr -norunpath -xregs=no%%frameptr
10318N/A
10318N/A%if %cc_is_gcc
10318N/A
10318N/A%define picflags %gcc_picflags
10318N/A%define optflags %gcc_optflags
10318N/A%define cxx_optflags %gcc_cxx_optflags
10318N/A
10318N/A%else
10318N/A# cc is not gcc
10318N/A
10318N/A%define picflags %suncc_picflags
10318N/A%define optflags %suncc_optflags ${EXTRA_CFLAGS}
10318N/A%define cxx_optflags %suncc_cxx_optflags ${EXTRA_CXXFLAGS}
10318N/A
10318N/A%endif
10318N/A
10318N/A%define _bindir %{_prefix}/bin/%{bld_arch}
10318N/A%define _libdir %{_prefix}/lib/%{bld_arch}
10318N/A%define _libexecdir %{_prefix}/lib/%{bld_arch}
10318N/A%define _pkg_config_path %{_libdir}/%{bld_arch}/pkgconfig
10318N/A
10318N/A# ChangeLog:
11313N/A# 2007-09-28 Laszlo (Laca) Peter <laca@sun.com>
11313N/A# - add /usr/gnu/lib to the RUNPATH and link with GNU libintl and libiconv
11313N/A# when building with the --with-gnu-iconv option
10489N/A# 2007-04-16 Laszlo (Laca) Peter <laca@sun.com>
10489N/A# - move -xvector the optimized flags as it required -xO3 or higher
10489N/A# so it wouldn't break debug builds
10328N/A# 2007-03-19 Doug Scott <dougs@truemail.co.th>
10328N/A# - Fixed -fno-omit-frame-pointer flag
10318N/A# 2007-03-15 Laszlo (Laca) Peter <laca@sun.com>
10318N/A# - define suncc_optflags, suncc_cxx_optflags, gcc_optflags, gcc_cxx_optflags
10318N/A# 2007-03-12 Doug Scott <dougs@truemail.co.th>