#767: Add "-no-undefined" as lately as possible in the ./configure process, so it won't be passed to GCC by accident

v0.27.3
vog 14 years ago
parent c9b9abf12e
commit d29e582a54

@ -31,12 +31,6 @@ AC_PROG_INSTALL
AC_PROG_LN_S AC_PROG_LN_S
AC_PROG_MAKE_SET AC_PROG_MAKE_SET
AC_CANONICAL_HOST AC_CANONICAL_HOST
# Add flag for DLL on Windows
case "$host_os" in
*mingw* | *cygwin*)
LDFLAGS="$LDFLAGS -no-undefined"
;;
esac
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# i18n support # i18n support
@ -204,6 +198,17 @@ else
fi fi
AC_SUBST(EXV_LIB_STATIC) AC_SUBST(EXV_LIB_STATIC)
# Add flag for DLL on Windows
#
# This must happen after all other configure checks, because
# the "-no-undefined" flag is only for libtool and may not be
# passed to GCC by accident.
case "$host_os" in
*mingw* | *cygwin*)
LDFLAGS="$LDFLAGS -no-undefined"
;;
esac
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# Create output files. # Create output files.
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------

Loading…
Cancel
Save