Skip to content
Snippets Groups Projects
Commit 18533eb2 authored by Anthony Léonard's avatar Anthony Léonard
Browse files

build: fix daemon build for mingw32 when restbed is needed.

Fix compilations options problem when building
for mingw32.
 * configure.ac: Removed some LDFLAGS preventing test for
   librestbed to work. Also added -lws2_32 as restbed needs
   it.
 * src/Makefile.am: LDFLAGS removed from configure.ac are
   included here.

Change-Id: Ie6256663778eb1376d4ae7930cbc94e7a240c714
parent b1e576a3
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,8 @@ case "${host_os}" in
AC_DEFINE([WIN32_LEAN_AND_MEAN],[1], [Define to limit the scope of <windows.h>.])
CPPFLAGS+="-D_WIN32_WINNT=0x0601 -DWINVER=0x0601 -D__USE_MINGW_ANSI_STDIO=1"
LDFLAGS+="-no-undefined -avoid-version -Wl,--nxcompat -Wl,--dynamicbase"
LDFLAGS+="-Wl,--nxcompat -Wl,--dynamicbase"
LIBS+=" -lws2_32"
ac_default_prefix="`pwd`/_win32"
DESTDIR="`pwd`/_win32/"
AC_SUBST(WINDOWS_ARCH)
......
......@@ -57,6 +57,10 @@ libring_la_LDFLAGS = \
@ZLIB_LIBS@ \
$(PCRE_LIBS)
if HAVE_WIN32
libring_la_LDFLAGS += -no-undefined -avoid-version
endif
if HAVE_OSX
#FIXME necessary for -lintl
libring_la_LDFLAGS += -L/usr/local/opt/gettext/lib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment