Add pkgversion to gcc >= 4.3
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Wed, 2 Dec 2009 19:36:43 +0000 (16:36 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 6 Dec 2009 17:41:15 +0000 (18:41 +0100)
Closes #765.

[Peter: change to check for !4.2.x instead]
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
toolchain/gcc/gcc-uclibc-4.x.mk

diff --git a/CHANGES b/CHANGES
index aed22981833a5c9b5b4fe8cbe3a855cd967be4d7..c0a6485fbd38aae4ccbb0ba943fa5d0fc26f38ef 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -8,6 +8,7 @@
        #753: Bump lighttpd package to 1.4.25
        #761: Add binutils 2.20 to toolchain options
        #763: [SECURITY] Update pcre to 7.9
+       #765: Add buildroot branding to gcc
 
 2009.11, Released December 1st, 2009:
 
index 241bfb3bf8413e41a780d9e5551897b189237562..d5a889fa33125afcdf555701c009da991b60a305 100644 (file)
@@ -65,6 +65,13 @@ ifeq ($(findstring x4.0.,x$(GCC_VERSION)),x4.0.)
 GCC_NO_MPFR:=y
 endif
 
+# Branding works on >= 4.3
+ifneq ($(findstring x4.2.,x$(GCC_VERSION)),x4.2)
+BUILDROOT_VERSION_STRING=$(call qstrip,$(BR2_VERSION))
+EXTRA_GCC_CONFIG_OPTIONS+=--with-pkgversion="Buildroot $(BUILDROOT_VERSION_STRING)" \
+       --with-bugurl="http://bugs.buildroot.net/"
+endif
+
 GCC_TARGET_PREREQ=
 GCC_STAGING_PREREQ=