Commit edc7680e authored by Ross Burton's avatar Ross Burton

src/util/Makefile: explicitly reset LINK to not use libtool

Simply looking at libtool redefines LINK globally to use libtool, which when
you're trying to cross-compile to Windows can cause complications.

As in src/util/ we're simply building a small binary for the build host, reset
LINK to the automake default so that the traditional compile/link steps occur
without libtool.

Also remove -all-static from LDFLAGS as that is a libtool-specific argument
intended to solve this problem.

Closes: #100Signed-off-by: default avatarRoss Burton <ross.burton@intel.com>
parent f111bf3a
......@@ -7,10 +7,11 @@ AM_CFLAGS = \
AM_CPPFLAGS = \
-I$(top_srcdir)/include
LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
CC = @CC_FOR_BUILD@
CPPFLAGS = @CPPFLAGS_FOR_BUILD@
CFLAGS = @CFLAGS_FOR_BUILD@
LDFLAGS = @LDFLAGS_FOR_BUILD@ -all-static
LDFLAGS = @LDFLAGS_FOR_BUILD@
LIBS =
EXEEXT = @EXEEXT_FOR_BUILD@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment