mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 09:30:45 -05:00
configure: Don't declare functions in AC_TRY_LINK and AC_TRY_COMPILE
https://bugzilla.gnome.org/show_bug.cgi?id=792717
This commit is contained in:
parent
65630d6310
commit
4e6114b14d
@ -151,7 +151,7 @@ AC_ARG_ENABLE([Bsymbolic],
|
|||||||
saved_LDFLAGS="${LDFLAGS}"
|
saved_LDFLAGS="${LDFLAGS}"
|
||||||
AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
|
AC_MSG_CHECKING([for -Bsymbolic-functions linker flag])
|
||||||
LDFLAGS=-Wl,-Bsymbolic-functions
|
LDFLAGS=-Wl,-Bsymbolic-functions
|
||||||
AC_TRY_LINK([], [int main (void) { return 0; }],
|
AC_TRY_LINK([], [return 0],
|
||||||
[
|
[
|
||||||
AC_MSG_RESULT([yes])
|
AC_MSG_RESULT([yes])
|
||||||
enable_Bsymbolic=yes
|
enable_Bsymbolic=yes
|
||||||
@ -172,7 +172,7 @@ dnl on other compilers, check if we can do -fvisibility=hidden
|
|||||||
SAVED_CFLAGS="${CFLAGS}"
|
SAVED_CFLAGS="${CFLAGS}"
|
||||||
CFLAGS="-fvisibility=hidden"
|
CFLAGS="-fvisibility=hidden"
|
||||||
AC_MSG_CHECKING([for -fvisibility=hidden compiler flag])
|
AC_MSG_CHECKING([for -fvisibility=hidden compiler flag])
|
||||||
AC_TRY_COMPILE([], [int main (void) { return 0; }],
|
AC_TRY_COMPILE([], [return 0],
|
||||||
AC_MSG_RESULT(yes)
|
AC_MSG_RESULT(yes)
|
||||||
enable_fvisibility_hidden=yes,
|
enable_fvisibility_hidden=yes,
|
||||||
AC_MSG_RESULT(no)
|
AC_MSG_RESULT(no)
|
||||||
|
Loading…
Reference in New Issue
Block a user