aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index f4ce60520..d9e6af74d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -50,7 +50,6 @@ AC_FUNC_FSEEKO
50 50
51 51
52CFLAGS="-Wall $CFLAGS" 52CFLAGS="-Wall $CFLAGS"
53LDFLAGS="$LDFLAGS -Wl,--unresolved-symbols=report-all"
54# use '-fno-strict-aliasing', but only if the compiler can take it 53# use '-fno-strict-aliasing', but only if the compiler can take it
55if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; 54if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1;
56then 55then
@@ -65,12 +64,16 @@ funcstocheck="getnameinfo gethostname gethostbyname gethostbyaddr getaddrinfo ge
65# Srcdir in a form that native compiler understands (i.e. DOS path on W32) 64# Srcdir in a form that native compiler understands (i.e. DOS path on W32)
66native_srcdir=$srcdir 65native_srcdir=$srcdir
67 66
67OLD_LDFLAGS="$LDFLAGS"
68LDFLAGS="$LDFLAGS -Wl,--unresolved-symbols=report-all"
69
68# Check system type 70# Check system type
69case "$host_os" in 71case "$host_os" in
70*darwin* | *rhapsody* | *macosx*) 72*darwin* | *rhapsody* | *macosx*)
71 AC_DEFINE_UNQUOTED(DARWIN,1,[This is an Apple Darwin system]) 73 AC_DEFINE_UNQUOTED(DARWIN,1,[This is an Apple Darwin system])
72 CPPFLAGS="-D_APPLE_C_SOURCE $CPPFLAGS" 74 CPPFLAGS="-D_APPLE_C_SOURCE $CPPFLAGS"
73 CFLAGS="-fno-common $CFLAGS" 75 CFLAGS="-fno-common $CFLAGS"
76 LDFLAGS="$OLD_LDFLAGS"
74 AC_MSG_WARN([WARNING: The VPN application cannot be compiled on your OS]) 77 AC_MSG_WARN([WARNING: The VPN application cannot be compiled on your OS])
75 AC_CHECK_LIB(intl, gettext) 78 AC_CHECK_LIB(intl, gettext)
76 build_target="darwin" 79 build_target="darwin"