diff options
author | Ting-Wei Lan <lantw@src.gnome.org> | 2018-01-20 17:37:24 +0800 |
---|---|---|
committer | Florian Müllner <florian.muellner@gmail.com> | 2018-03-21 13:14:50 +0000 |
commit | 4e6114b14d2c850cf352691505b3802a556eb125 (patch) | |
tree | 7cb0e9778374abec83f2b09e19578969db08e61f | |
parent | 65630d6310817a1ac1cb03749d425bb539994e6a (diff) | |
download | mutter-4e6114b14d2c850cf352691505b3802a556eb125.tar.gz |
configure: Don't declare functions in AC_TRY_LINK and AC_TRY_COMPILE
https://bugzilla.gnome.org/show_bug.cgi?id=792717
-rw-r--r-- | clutter/configure.ac | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clutter/configure.ac b/clutter/configure.ac index 5474fa093..6ad5d9285 100644 --- a/clutter/configure.ac +++ b/clutter/configure.ac @@ -151,7 +151,7 @@ AC_ARG_ENABLE([Bsymbolic], saved_LDFLAGS="${LDFLAGS}" AC_MSG_CHECKING([for -Bsymbolic-functions linker flag]) LDFLAGS=-Wl,-Bsymbolic-functions - AC_TRY_LINK([], [int main (void) { return 0; }], + AC_TRY_LINK([], [return 0], [ AC_MSG_RESULT([yes]) enable_Bsymbolic=yes @@ -172,7 +172,7 @@ dnl on other compilers, check if we can do -fvisibility=hidden SAVED_CFLAGS="${CFLAGS}" CFLAGS="-fvisibility=hidden" 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) enable_fvisibility_hidden=yes, AC_MSG_RESULT(no) |