mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 01:09:01 +08:00
186978b0e4
* Updated to point at 1.1.34 tagged version of libxslt, merged the patch differences and added the required, additional patches to get it building. * Added missing version info using "vcpkg x-add-version". * Update ports/libxslt/CONTROL Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * Re-added the version with the port-version fix in. * Fix for x64-windows-static builds. * Another re-add of the version since the git tree hash is different. * [libxslt] Reorganize patches Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
50 lines
1.5 KiB
Diff
50 lines
1.5 KiB
Diff
diff --git "a/win32/Makefile.msvc" "b/win32/Makefile.msvc"
|
|
index 2e4742bb..8bfe7d83 100644
|
|
--- "a/win32/Makefile.msvc"
|
|
+++ "b/win32/Makefile.msvc"
|
|
@@ -59,7 +59,13 @@ CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
|
|
LD = link.exe
|
|
LDFLAGS = /nologo
|
|
LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR) /LIBPATH:$(LIBPREFIX)
|
|
-LIBS =
|
|
+# The libraries are needed for static builds (the makefile builds all tools and dlls)
|
|
+LIBS = iconv.lib charset.lib ws2_32.lib
|
|
+!if "$(DEBUG)" == "1"
|
|
+LIBS = $(LIBS) zlibd.lib lzmad.lib
|
|
+!else
|
|
+LIBS = $(LIBS) zlib.lib lzma.lib
|
|
+!endif
|
|
|
|
# The archiver and its options.
|
|
AR = lib.exe
|
|
@@ -71,8 +77,14 @@ CFLAGS = $(CFLAGS) /D "_DEBUG" /Od /Z7
|
|
LDFLAGS = $(LDFLAGS) /DEBUG
|
|
!else
|
|
CFLAGS = $(CFLAGS) /D "NDEBUG" /O2
|
|
+LDFLAGS = $(LDFLAGS) /DEBUG /OPT:REF /OPT:ICF
|
|
!endif
|
|
|
|
+# append CFLAGS etc. passed on command line
|
|
+CPPFLAGS = $(CPPFLAGS) $(EXTRA_CPPFLAGS)
|
|
+CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS)
|
|
+LDFLAGS = $(LDFLAGS) $(EXTRA_LDFLAGS)
|
|
+
|
|
# Libxslt object files.
|
|
XSLT_OBJS = $(XSLT_INTDIR)\attributes.obj\
|
|
$(XSLT_INTDIR)\documents.obj\
|
|
@@ -309,13 +321,7 @@ $(UTILS_INTDIR) :
|
|
# An implicit rule for xsltproc and friends.
|
|
APPLIBS = $(LIBS)
|
|
!if "$(STATIC)" == "1"
|
|
-APPLIBS = $(LIBS) libxml2_a.lib
|
|
-!if "$(WITH_ICONV)" == "1"
|
|
-APPLIBS = $(APPLIBS) iconv.lib
|
|
-!endif
|
|
-!if "$(WITH_ZLIB)" == "1"
|
|
-APPLIBS = $(APPLIBS) zlib.lib
|
|
-!endif
|
|
+APPLIBS = $(LIBS) libxml2.lib
|
|
{$(UTILS_SRCDIR)}.c{$(BINDIR)}.exe:
|
|
$(CC) /D "LIBXML_STATIC" /D "LIBXSLT_STATIC" /D "LIBEXSLT_STATIC" \
|
|
$(CFLAGS) /Fo$(UTILS_INTDIR)\ /c $<
|