Skip to content

Commit

Permalink
Remove WIN32_EXTRA_* variables
Browse files Browse the repository at this point in the history
Simply use LDFLAGS and LIBS instead.
  • Loading branch information
nwellnhof committed Feb 12, 2019
1 parent d5d511f commit e176258
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
6 changes: 1 addition & 5 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -579,15 +579,11 @@ expanded_libdir=$(
LIBXSLT_DEFAULT_PLUGINS_PATH="$expanded_libdir/libxslt-plugins"
AC_SUBST(LIBXSLT_DEFAULT_PLUGINS_PATH)

WIN32_EXTRA_LIBADD=
WIN32_EXTRA_LDFLAGS=
case "$host" in
*-*-cygwin*|*-*-mingw*)
WIN32_EXTRA_LDFLAGS="-no-undefined"
LDFLAGS="$LDFLAGS -no-undefined"
;;
esac
AC_SUBST(WIN32_EXTRA_LIBADD)
AC_SUBST(WIN32_EXTRA_LDFLAGS)


AC_SUBST(XSLTPROCDV)
Expand Down
2 changes: 1 addition & 1 deletion libexslt/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ libexslt_la_SOURCES = \
dynamic.c

libexslt_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(EXTRA_LIBS) $(LIBGCRYPT_LIBS) $(M_LIBS)
libexslt_la_LDFLAGS = $(WIN32_EXTRA_LDFLAGS) -version-info $(LIBEXSLT_VERSION_INFO)
libexslt_la_LDFLAGS = -version-info $(LIBEXSLT_VERSION_INFO)

man_MANS = libexslt.3

Expand Down
1 change: 0 additions & 1 deletion libxslt/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ endif

libxslt_la_LIBADD = $(LIBXML_LIBS) $(EXTRA_LIBS) $(M_LIBS)
libxslt_la_LDFLAGS = \
$(WIN32_EXTRA_LDFLAGS) \
$(LIBXSLT_VERSION_SCRIPT) \
-version-info $(LIBXSLT_VERSION_INFO)

Expand Down
2 changes: 1 addition & 1 deletion python/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ EXTRA_DIST = \
libxslt-python-api.xml \
$(DOCS)

libxsltmod_la_LDFLAGS = $(WIN32_EXTRA_LDFLAGS) -module -avoid-version
libxsltmod_la_LDFLAGS = -module -avoid-version

if WITH_PYTHON
mylibs = \
Expand Down
2 changes: 1 addition & 1 deletion tests/plugins/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ plugindir = $(abs_builddir)/.libs
xmlsoft_org_xslt_testplugin_la_CFLAGS = -DMODULE_COMPILE $(LIBXML_CFLAGS) $(LIBXSLT_CFLAGS)
xmlsoft_org_xslt_testplugin_la_SOURCES = testplugin.c
xmlsoft_org_xslt_testplugin_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(EXTRA_LIBS)
xmlsoft_org_xslt_testplugin_la_LDFLAGS = $(WIN32_EXTRA_LDFLAGS) -module -avoid-version -rpath $(plugindir)
xmlsoft_org_xslt_testplugin_la_LDFLAGS = -module -avoid-version -rpath $(plugindir)

test-logall:
@echo '## Running plugin tests'
Expand Down
2 changes: 1 addition & 1 deletion xsltproc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ DEPS = $(top_builddir)/libxslt/libxslt.la \

LDADDS = $(top_builddir)/libxslt/libxslt.la \
$(top_builddir)/libexslt/libexslt.la \
$(LIBXML_LIBS) $(EXTRA_LIBS) $(M_LIBS) $(WIN32_EXTRA_LIBADD)
$(LIBXML_LIBS) $(EXTRA_LIBS) $(M_LIBS)

xsltproc_LDADD = $(LIBGCRYPT_LIBS) $(LDADDS)

Expand Down

0 comments on commit e176258

Please sign in to comment.