From: Ben Gras Date: Mon, 26 Aug 2013 16:31:54 +0000 (+0000) Subject: gcc: realize gas supports visibility X-Git-Tag: v3.3.0~814 X-Git-Url: http://zhaoyanbai.com/repos/FAQ?a=commitdiff_plain;h=1fbbfa06c279ab9f4e9e12787b52913893dc51bf;p=minix.git gcc: realize gas supports visibility . solution for "warning: visibility attribute not supported in this configuration" . needed to make warnings fatal, -Werror Change-Id: If972300a82df570093f2d89825935483ff69fb18 --- diff --git a/external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h b/external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h index fbe18bddc..87872091b 100644 --- a/external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h +++ b/external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h @@ -967,7 +967,7 @@ /* Define if your assembler and linker support .hidden. */ -/* #undef HAVE_GAS_HIDDEN */ +#define HAVE_GAS_HIDDEN 1 /* Define if your assembler supports .lcomm with an alignment field. */ #ifndef USED_FOR_TARGET diff --git a/external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h b/external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h index 5c7c5b9b5..660155e1f 100644 --- a/external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h +++ b/external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h @@ -967,7 +967,7 @@ /* Define if your assembler and linker support .hidden. */ -/* #undef HAVE_GAS_HIDDEN */ +#define HAVE_GAS_HIDDEN 1 /* Define if your assembler supports .lcomm with an alignment field. */ #ifndef USED_FOR_TARGET diff --git a/tools/gcc/Makefile b/tools/gcc/Makefile index 39b864996..3782a86dc 100644 --- a/tools/gcc/Makefile +++ b/tools/gcc/Makefile @@ -44,12 +44,15 @@ COMMON_CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} \ COMMON_CONFIGURE_ARGS+= \ --disable-libssp \ --disable-threads \ - --disable-visibility \ + --enable-visibility \ --disable-libunwind +CONFIGURE_ENV+= gcc_cv_ld_hidden=yes + .if ${HOST_OSTYPE:C/\-.*//} == "Minix" CONFIGURE_ENV+= LDFLAGS=-lm .endif # ${HOST_OSTYPE:C/\-.*//} == "Minix" + .endif # defined(__MINIX) .if defined(GCC_CONFIG_ARCH.${MACHINE_ARCH})