mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-08-10 09:03:02 +03:00
Build without winsock
Fixes bug #481434: https://bugzilla.gnome.org/show_bug.cgi?id=481434
This commit is contained in:
@@ -582,14 +582,9 @@ AC_SUBST(LIBXSLT_DEFAULT_PLUGINS_PATH)
|
|||||||
WIN32_EXTRA_LIBADD=
|
WIN32_EXTRA_LIBADD=
|
||||||
WIN32_EXTRA_LDFLAGS=
|
WIN32_EXTRA_LDFLAGS=
|
||||||
case "$host" in
|
case "$host" in
|
||||||
*-*-cygwin*)
|
*-*-cygwin*|*-*-mingw*)
|
||||||
WIN32_EXTRA_LDFLAGS="-no-undefined"
|
WIN32_EXTRA_LDFLAGS="-no-undefined"
|
||||||
;;
|
;;
|
||||||
*-*-mingw*)
|
|
||||||
WIN32_EXTRA_LIBADD="-lwsock32"
|
|
||||||
WIN32_EXTRA_LDFLAGS="-no-undefined"
|
|
||||||
AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation])
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
AC_SUBST(WIN32_EXTRA_LIBADD)
|
AC_SUBST(WIN32_EXTRA_LIBADD)
|
||||||
AC_SUBST(WIN32_EXTRA_LDFLAGS)
|
AC_SUBST(WIN32_EXTRA_LDFLAGS)
|
||||||
|
@@ -55,7 +55,7 @@ CFLAGS += -I$(BASEDIR) -I$(XSLT_SRCDIR) -I$(INCPREFIX)
|
|||||||
# The linker and its options.
|
# The linker and its options.
|
||||||
LD = gcc.exe
|
LD = gcc.exe
|
||||||
LDFLAGS += -Wl,-L,$(BINDIR) -Wl,-L,$(LIBPREFIX)
|
LDFLAGS += -Wl,-L,$(BINDIR) -Wl,-L,$(LIBPREFIX)
|
||||||
LIBS = -lwsock32
|
LIBS =
|
||||||
|
|
||||||
# The archiver and its options.
|
# The archiver and its options.
|
||||||
AR = ar.exe
|
AR = ar.exe
|
||||||
|
@@ -59,7 +59,7 @@ CFLAGS = $(CFLAGS) /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE
|
|||||||
LD = link.exe
|
LD = link.exe
|
||||||
LDFLAGS = /nologo
|
LDFLAGS = /nologo
|
||||||
LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR) /LIBPATH:$(LIBPREFIX)
|
LDFLAGS = $(LDFLAGS) /LIBPATH:$(BINDIR) /LIBPATH:$(LIBPREFIX)
|
||||||
LIBS = wsock32.lib
|
LIBS =
|
||||||
|
|
||||||
# The archiver and its options.
|
# The archiver and its options.
|
||||||
AR = lib.exe
|
AR = lib.exe
|
||||||
|
Reference in New Issue
Block a user