浏览代码

Add pkgversion to gcc >= 4.3

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>
Gustavo Zacarias 15 年之前
父节点
当前提交
09c181f289
共有 2 个文件被更改,包括 8 次插入0 次删除
  1. 1 0
      CHANGES
  2. 7 0
      toolchain/gcc/gcc-uclibc-4.x.mk

+ 1 - 0
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:
 

+ 7 - 0
toolchain/gcc/gcc-uclibc-4.x.mk

@@ -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=