f1514e9dab3dbc49b0462adf59e758e4c6ee9904
[git/cygwin-packages/libxslt.git] / 1.1.24-no-undefined.patch
1 --- origsrc/libxslt-1.1.24/configure.in 2008-05-13 10:40:31.000000000 -0500
2 +++ src/libxslt-1.1.24/configure.in 2008-07-09 02:20:10.921875000 -0500
3 @@ -510,6 +510,13 @@
4 WIN32_EXTRA_LIBADD=
5 WIN32_EXTRA_LDFLAGS=
6 case "$host" in
7 + *-*-cygwin*)
8 + WIN32_EXTRA_LDFLAGS="-no-undefined"
9 + if test "${PYTHON}" != ""
10 + then
11 + CYGWIN_EXTRA_PYTHON_LIBADD="-L/usr/lib/python${PYTHON_VERSION}/config -lpython${PYTHON_VERSION}"
12 + fi
13 + ;;
14 *-*-mingw*)
15 WIN32_EXTRA_LIBADD="-lwsock32"
16 WIN32_EXTRA_LDFLAGS="-no-undefined"
17 @@ -520,6 +527,7 @@
18 esac
19 AC_SUBST(WIN32_EXTRA_LIBADD)
20 AC_SUBST(WIN32_EXTRA_LDFLAGS)
21 +AC_SUBST(CYGWIN_EXTRA_PYTHON_LIBADD)
22
23
24 AC_SUBST(XSLTPROCDV)
25 --- origsrc/libxslt-1.1.24/libexslt/Makefile.am 2007-01-03 09:11:57.000000000 -0600
26 +++ src/libxslt-1.1.24/libexslt/Makefile.am 2008-07-09 02:20:10.921875000 -0500
27 @@ -29,7 +29,7 @@
28 dynamic.c
29
30 libexslt_la_LIBADD = $(top_builddir)/libxslt/libxslt.la $(EXTRA_LIBS)
31 -libexslt_la_LDFLAGS = -version-info @LIBEXSLT_VERSION_INFO@ $(LIBGCRYPT_LIBS)
32 +libexslt_la_LDFLAGS = -version-info @LIBEXSLT_VERSION_INFO@ $(WIN32_EXTRA_LDFLAGS) $(LIBGCRYPT_LIBS)
33
34 man_MANS = libexslt.3
35
36 --- origsrc/libxslt-1.1.24/libxslt/Makefile.am 2007-01-03 09:11:57.000000000 -0600
37 +++ src/libxslt-1.1.24/libxslt/Makefile.am 2008-07-09 02:20:10.937500000 -0500
38 @@ -51,7 +51,7 @@
39 libxslt.h
40
41 libxslt_la_LIBADD = $(EXTRA_LIBS)
42 -libxslt_la_LDFLAGS = -version-info @LIBXSLT_VERSION_INFO@
43 +libxslt_la_LDFLAGS = -version-info @LIBXSLT_VERSION_INFO@ $(WIN32_EXTRA_LDFLAGS)
44
45 man_MANS = libxslt.3
46
47 --- origsrc/libxslt-1.1.24/python/Makefile.am 2007-01-03 09:11:42.000000000 -0600
48 +++ src/libxslt-1.1.24/python/Makefile.am 2008-07-09 02:20:10.937500000 -0500
49 @@ -24,12 +24,14 @@
50 libxslt-python-api.xml \
51 $(DOCS)
52
53 -libxsltmod_la_LDFLAGS = -module -avoid-version
54 +libxsltmod_la_LDFLAGS = -module -avoid-version $(WIN32_EXTRA_LDFLAGS)
55
56 if WITH_PYTHON
57 mylibs = \
58 $(top_builddir)/libxslt/libxslt.la \
59 - $(top_builddir)/libexslt/libexslt.la
60 + $(top_builddir)/libexslt/libexslt.la \
61 + $(CYGWIN_EXTRA_PYTHON_LIBADD) \
62 + $(EXTRA_LIBS)
63
64 all-local: libxslt.py
65
This page took 0.035197 seconds and 4 git commands to generate.