Build for Solaris 2.6/x86

This commit is contained in:
Tom G. Christensen 2008-05-26 18:39:38 +00:00 committed by Tom G. Christensen
parent 6f5e375295
commit dcc0525a09
3 changed files with 15 additions and 1 deletions

View File

@ -15,7 +15,7 @@ pkgver=1
source[0]=$topdir-$version.tar.bz2
[ -n "$snapshot" ] && source[0]=$topdir-$version-$snapshot.tar.bz2
## If there are no patches, simply comment this
#patch[0]=
patch[0]=gcc-4.0.4-newer-gas.patch
# Source function library
. ${BUILDPKG_BASE}/scripts/buildpkg.functions
@ -36,6 +36,7 @@ langs="--enable-languages=c,ada,c++,f95,objc"
objdir=all_native
# platform/arch specific options
[ "$_os" = "sunos56" -a "$arch" = "i386" ] && platform_configure_args="--with-gnu-as --with-as=$lprefix/bin/gas"
[ "$_os" = "sunos56" -a "$arch" = "i386" ] && platform_configure_args="$platform_configure_args --with-gnu-ld --with-ld=$lprefix/bin/gld"
[ "$arch" = "sparc" ] && vendor="sun" || vendor="pc"
configure_args="$global_config_args $langs $platform_configure_args"

View File

@ -71,6 +71,8 @@ $iprefix/man/?a?7/*.7
$_sharedir
# Only on i386
$iprefix/lib/gcc/${arch}-${vendor}-solaris*/$version/include/*intrin.h
$iprefix/lib/gcc/${arch}-${vendor}-solaris*/$version/include/mm3dnow.h
$iprefix/lib/gcc/${arch}-${vendor}-solaris*/$version/include/mm_malloc.h
[gcc-gnat]
pkgname="${pkgprefix}g${abbrev_ver}gn"

View File

@ -0,0 +1,11 @@
--- gcc-4.0.4/gcc/configure.orig 2008-05-25 16:24:23.893788000 +0200
+++ gcc-4.0.4/gcc/configure 2008-05-25 16:26:23.983888000 +0200
@@ -13419,7 +13419,7 @@
# arbitrary sections are supported and try the test.
as_ver=`$gcc_cv_as --version 2>/dev/null | sed 1q`
if echo "$as_ver" | grep GNU > /dev/null; then
- as_ver=`echo $as_ver | sed -e 's/GNU assembler \([0-9.][0-9.]*\).*/\1/'`
+ as_ver=`echo $as_ver | sed -e 's/GNU assembler.* \([0-9.][0-9.]*\).*/\1/'`
as_major=`echo $as_ver | sed 's/\..*//'`
as_minor=`echo $as_ver | sed 's/[^.]*\.\([0-9]*\).*/\1/'`
if test $as_major -eq 2 && test $as_minor -lt 11