. solution for "warning: visibility attribute not supported in
this configuration"
. needed to make warnings fatal, -Werror
Change-Id: If972300a82df570093f2d89825935483ff69fb18
/* 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
/* 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
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})