x86_sse2.inc revision 10328
132N/A#
132N/A# Intel SSE2 ISA settings for Solaris packages
132N/A#
132N/A# Copyright 2007 Sun Microsystems, Inc.
132N/A#
132N/A# Solaris.inc must be included before this file
132N/A
132N/A%define bld_arch pentium_pro+mmx
132N/A%define sse2_arch pentium_pro+mmx
132N/A
132N/A%define opt_sse2 1
132N/A%define can_isaexec 1
132N/A%define gtk_doc_option --disable-gtk-doc
132N/A
132N/A%define arch_ldadd -xarch=sse2 -L%{_libdir} -R%{_libdir}
132N/A
132N/A%if %debug_build
132N/A%define pkgbuild_postprocess /bin/true
132N/A%define _cc_opt_level -g
132N/A%define _cxx_opt_level -g
132N/A%define _gcc_opt_level -g
132N/A%define _gxx_opt_level -g
132N/A%else
132N/A%if %cc_is_gcc
132N/A%define _gcc_opt_level -O3
132N/A%define _gxx_opt_level -O3
132N/A%else
132N/A%define _cc_opt_level -xO4 -xspace
132N/A%define _cxx_opt_level -xO3 -xspace
132N/A%endif
132N/A%endif
132N/A
132N/A%define gcc_optflags %_gcc_opt_level -mcpu=pentiumpro -mtune=pentiumpro -msse2 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
132N/A%define gcc_cxx_optflags %_gxx_opt_level -mcpu=pentiumpro -mtune=pentiumpro -msse2 -Xlinker -i -fno-omit-frame-pointer %gcc_picflags
132N/A
132N/A%define suncc_optflags -i %_cc_opt_level -xstrconst -xarch=sse2 -xvector -mr -xregs=no%%frameptr
132N/A%define suncc_cxx_optflags -i %_cxx_opt_level -xarch=sse2 -xvector -mr -norunpath -xregs=no%%frameptr
132N/A
132N/A%if %cc_is_gcc
132N/A
132N/A%define picflags %gcc_picflags
132N/A%define optflags %gcc_optflags
132N/A%define cxx_optflags %gcc_cxx_optflags
132N/A
132N/A%else
132N/A# cc is not gcc
132N/A
132N/A%define picflags %suncc_picflags
132N/A%define optflags %suncc_optflags ${EXTRA_CFLAGS}
132N/A%define cxx_optflags %suncc_cxx_optflags ${EXTRA_CXXFLAGS}
132N/A
132N/A%endif
132N/A
132N/A%define _bindir %{_prefix}/bin/%{bld_arch}
132N/A%define _libdir %{_prefix}/lib/%{bld_arch}
132N/A%define _libexecdir %{_prefix}/lib/%{bld_arch}
132N/A%define _pkg_config_path %{_libdir}/%{bld_arch}/pkgconfig
132N/A
132N/A# ChangeLog:
132N/A# 2007-03-19 Doug Scott <dougs@truemail.co.th>
132N/A# - Fixed -fno-omit-frame-pointer flag
132N/A# 2007-03-15 Laszlo (Laca) Peter <laca@sun.com>
132N/A# - define suncc_optflags, suncc_cxx_optflags, gcc_optflags, gcc_cxx_optflags
132N/A# 2007-03-12 Doug Scott <dougs@truemail.co.th>
132N/A