summaryrefslogtreecommitdiff
path: root/source4/build
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2007-01-12 03:05:31 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:40:24 -0500
commit34fe5027d04e8ad1fa379ee1413b6e331b585d24 (patch)
tree1a5ccf22de8041f2a9ab66bdb53bf2f58acfc6d6 /source4/build
parent5f450fbd9a81db0e9e103ebcb3fdece31edb104f (diff)
downloadsamba-34fe5027d04e8ad1fa379ee1413b6e331b585d24.tar.gz
samba-34fe5027d04e8ad1fa379ee1413b6e331b585d24.tar.bz2
samba-34fe5027d04e8ad1fa379ee1413b6e331b585d24.zip
r20697: A couple of minot cross-compile fixes.
(This used to be commit d4c7dd19f3a114ee1527cbcd3071b4921600977d)
Diffstat (limited to 'source4/build')
-rw-r--r--source4/build/m4/check_cc.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/build/m4/check_cc.m4 b/source4/build/m4/check_cc.m4
index f1b4f82cec..324ddb3c03 100644
--- a/source4/build/m4/check_cc.m4
+++ b/source4/build/m4/check_cc.m4
@@ -72,7 +72,8 @@ if test -n "$VISIBILITY_CFLAGS"; then
OLD_CFLAGS="$CFLAGS"
CFLAGS="$CFLAGS $VISIBILITY_CFLAGS"
- AC_TRY_RUN([
+ AC_TRY_LINK([],
+ [
void vis_foo1(void) {}
__attribute__((visibility("default"))) void vis_foo2(void) {}
#include "${srcdir-.}/build/tests/trivial.c"