wine/libs/xslt/Makefile.in
Martin Storsjö 683b43b996 xslt: Build with LIBXSLT_STATIC, fix building with clang in MSVC mode.
This avoids unnecessarily embedding dllexport directives in all
the object files.

This also fixes building with clang in MSVC mode, as the MSVC
definition of XSLTPUBVAR in xsltexports.h is lacking 'extern'
when doing dllexport. (This probably used to work before
compilers defaulted to -fcommon.) This fixes duplicate symbols
like these:

lld-link: error: duplicate symbol: xsltGenericError
>>> defined at ../src/libs/xslt/libxslt/xsltutils.h:140
>>>            libxslt.cross.a(documents.cross.o)
>>> defined at ../src/libs/xslt/libxslt/xsltutils.h:140
>>>            libxslt.cross.a(extensions.cross.o)

Signed-off-by: Martin Storsjö <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-21 11:22:00 +02:00

23 lines
495 B
Makefile

EXTLIB = libxslt.a
EXTRAINCL = $(XML2_PE_CFLAGS) $(XSLT_PE_CFLAGS)
C_SRCS = \
libxslt/attributes.c \
libxslt/attrvt.c \
libxslt/documents.c \
libxslt/extensions.c \
libxslt/extra.c \
libxslt/functions.c \
libxslt/imports.c \
libxslt/keys.c \
libxslt/namespaces.c \
libxslt/numbers.c \
libxslt/pattern.c \
libxslt/preproc.c \
libxslt/security.c \
libxslt/templates.c \
libxslt/transform.c \
libxslt/variables.c \
libxslt/xslt.c \
libxslt/xsltlocale.c \
libxslt/xsltutils.c