gcc: realize gas supports visibility
. solution for "warning: visibility attribute not supported in this configuration" . needed to make warnings fatal, -Werror Change-Id: If972300a82df570093f2d89825935483ff69fb18
This commit is contained in:
parent
d5c6c6a51b
commit
1fbbfa06c2
3 changed files with 6 additions and 3 deletions
|
@ -967,7 +967,7 @@
|
||||||
|
|
||||||
|
|
||||||
/* Define if your assembler and linker support .hidden. */
|
/* 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. */
|
/* Define if your assembler supports .lcomm with an alignment field. */
|
||||||
#ifndef USED_FOR_TARGET
|
#ifndef USED_FOR_TARGET
|
||||||
|
|
|
@ -967,7 +967,7 @@
|
||||||
|
|
||||||
|
|
||||||
/* Define if your assembler and linker support .hidden. */
|
/* 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. */
|
/* Define if your assembler supports .lcomm with an alignment field. */
|
||||||
#ifndef USED_FOR_TARGET
|
#ifndef USED_FOR_TARGET
|
||||||
|
|
|
@ -44,12 +44,15 @@ COMMON_CONFIGURE_ARGS= --target=${MACHINE_GNU_PLATFORM} \
|
||||||
COMMON_CONFIGURE_ARGS+= \
|
COMMON_CONFIGURE_ARGS+= \
|
||||||
--disable-libssp \
|
--disable-libssp \
|
||||||
--disable-threads \
|
--disable-threads \
|
||||||
--disable-visibility \
|
--enable-visibility \
|
||||||
--disable-libunwind
|
--disable-libunwind
|
||||||
|
|
||||||
|
CONFIGURE_ENV+= gcc_cv_ld_hidden=yes
|
||||||
|
|
||||||
.if ${HOST_OSTYPE:C/\-.*//} == "Minix"
|
.if ${HOST_OSTYPE:C/\-.*//} == "Minix"
|
||||||
CONFIGURE_ENV+= LDFLAGS=-lm
|
CONFIGURE_ENV+= LDFLAGS=-lm
|
||||||
.endif # ${HOST_OSTYPE:C/\-.*//} == "Minix"
|
.endif # ${HOST_OSTYPE:C/\-.*//} == "Minix"
|
||||||
|
|
||||||
.endif # defined(__MINIX)
|
.endif # defined(__MINIX)
|
||||||
|
|
||||||
.if defined(GCC_CONFIG_ARCH.${MACHINE_ARCH})
|
.if defined(GCC_CONFIG_ARCH.${MACHINE_ARCH})
|
||||||
|
|
Loading…
Reference in a new issue