diff options
-rw-r--r-- | configure.ac | 5 |
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 | ||
52 | CFLAGS="-Wall $CFLAGS" | 52 | CFLAGS="-Wall $CFLAGS" |
53 | LDFLAGS="$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 |
55 | if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; | 54 | if gcc -fno-strict-aliasing -S -o /dev/null -xc /dev/null >/dev/null 2>&1; |
56 | then | 55 | then |
@@ -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) |
66 | native_srcdir=$srcdir | 65 | native_srcdir=$srcdir |
67 | 66 | ||
67 | OLD_LDFLAGS="$LDFLAGS" | ||
68 | LDFLAGS="$LDFLAGS -Wl,--unresolved-symbols=report-all" | ||
69 | |||
68 | # Check system type | 70 | # Check system type |
69 | case "$host_os" in | 71 | case "$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" |