]> Zhao Yanbai Git Server - minix.git/commitdiff
gcc: realize gas supports visibility 92/792/2
authorBen Gras <ben@minix3.org>
Mon, 26 Aug 2013 16:31:54 +0000 (16:31 +0000)
committerBen Gras <ben@minix3.org>
Mon, 26 Aug 2013 18:02:43 +0000 (18:02 +0000)
. solution for "warning: visibility attribute not supported in
  this configuration"
. needed to make warnings fatal, -Werror

Change-Id: If972300a82df570093f2d89825935483ff69fb18

external/gpl3/gcc/usr.bin/gcc/arch/earm/auto-host.h
external/gpl3/gcc/usr.bin/gcc/arch/i386/auto-host.h
tools/gcc/Makefile

index fbe18bddcee8b95c0a92d4bd4f08fb10cc7911a4..87872091ba892833a388f4983f5e458accc8480f 100644 (file)
 
 
 /* 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
index 5c7c5b9b56d9ab1fd71d526075159d4364504341..660155e1fbf8941829605d42f0f32e5d6c342298 100644 (file)
 
 
 /* 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
index 39b864996f5d02ee01f5c0b93507b58b95ab249b..3782a86dc127120ea21fb185e673bc4a9f9a8809 100644 (file)
@@ -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})