Modified plugins/Makefile.am to add -no-undefined as required on cygwin.

This commit is contained in:
Ward Fisher 2020-11-11 10:51:24 -07:00
parent 1135b5af22
commit b590216005
2 changed files with 3 additions and 2 deletions

View File

@ -1476,6 +1476,7 @@ AC_MSG_RESULT([$BINFILE_NAME $FC $CXX])
# Bugfix for Cygwin.
##
AC_MSG_CHECKING([if libtool needs -no-undefined flag to build shared libraries])
NOUNDEFINED=""
case "`uname`" in
CYGWIN*|MINGW*|AIX*)
## Add in the -no-undefined flag to LDFLAGS for libtool.

View File

@ -5,7 +5,7 @@
include $(top_srcdir)/lib_flags.am
AM_LDFLAGS += -module -avoid-version -shared -export-dynamic \
-rpath ${abs_builddir}
-rpath ${abs_builddir} ${NOUNDEFINED}
BZIP2HDRS = bzlib.h bzlib_private.h
BZIP2SRC = blocksort.c huffman.c crctable.c randtable.c compress.c decompress.c bzlib.c