RFC: add support for building with gcc 4.6 + gold

Dr Andrew John Hughes ahughes at redhat.com
Sun Feb 13 12:45:46 PST 2011


On 18:29 Fri 11 Feb     , Omair Majid wrote:
> Hi,
> 
> Building hotspot with gcc 4.6 and gold fails. Please see the bug filed 
> at https://bugzilla.redhat.com/show_bug.cgi?id=676659 for details.
> 
> The attached patch fixes it for me. Any thoughts?
> 
> Cheers,
> Omair

Looks good.  Committed to HEAD with an appropriate NEWS entry.

> diff -r a3ab67013879 Makefile.am
> --- a/Makefile.am	Wed Feb 09 10:47:23 2011 +0000
> +++ b/Makefile.am	Fri Feb 11 18:21:57 2011 -0500
> @@ -291,7 +291,8 @@
>  	patches/openjdk/4724552-CubicCurve2D.patch \
>  	patches/openjdk/4493128-CubicCurve2D.patch \
>  	patches/openjdk/4645692-CubicCurve2D.solveCubic.patch \
> -	patches/no-static-linking.patch
> +	patches/no-static-linking.patch \
> +	patches/gcc-4.6-gold.patch
>  
>  if !WITH_ALT_HSBUILD
>  ICEDTEA_PATCHES += \
> diff -r a3ab67013879 patches/gcc-4.6-gold.patch
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/patches/gcc-4.6-gold.patch	Fri Feb 11 18:21:57 2011 -0500
> @@ -0,0 +1,12 @@
> +diff -r 55b9f498dbce make/linux/makefiles/gcc.make
> +--- openjdk/hotspot/make/linux/makefiles/gcc.make	Thu Feb 10 16:24:29 2011 -0800
> ++++ openjdk/hotspot/make/linux/makefiles/gcc.make	Fri Feb 11 18:09:21 2011 -0500
> +@@ -196,7 +196,7 @@
> + SHARED_FLAG = -shared
> + 
> + # Keep symbols even they are not used
> +-AOUT_FLAGS += -export-dynamic
> ++AOUT_FLAGS += -Wl,-export-dynamic
> + 
> + #------------------------------------------------------------------------
> + # Debug flags


-- 
Andrew :)

Free Java Software Engineer
Red Hat, Inc. (http://www.redhat.com)

Support Free Java!
Contribute to GNU Classpath and IcedTea
http://www.gnu.org/software/classpath
http://icedtea.classpath.org
PGP Key: F5862A37 (https://keys.indymedia.org/)
Fingerprint = EA30 D855 D50F 90CD F54D  0698 0713 C3ED F586 2A37



More information about the distro-pkg-dev mailing list