port: fix link order of babeltrace2.exe
authorMichael Jeanson <mjeanson@efficios.com>
Tue, 8 Oct 2019 19:20:39 +0000 (15:20 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 9 Oct 2019 18:14:29 +0000 (14:14 -0400)
On both Cygwin and MINGW, the link order of static libraries in an exe
requires the dependent libraries to come first. In this case
'libbabeltrace2-param-parse.la' depends on 'libbabeltrace2.la' for the
'bt_value_bool_create_init' symbol and thus has to be listed before.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Change-Id: I64df3dddcc65233c63f61af3fe7a6a093990c203
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2153
Reviewed-by: Simon Marchi <simon.marchi@efficios.com>
Tested-by: jenkins <jenkins@lttng.org>
src/cli/Makefile.am

index e5567843fcba6266bf56e3f27795583f61788592..cda8977f046b9e7b4bdedb2b604c682bb3a05fe9 100644 (file)
@@ -54,12 +54,12 @@ babeltrace2_bin_LDFLAGS = $(LD_NO_AS_NEEDED)
 babeltrace2_bin_LDADD = \
        $(top_builddir)/src/argpar/libbabeltrace2-argpar.la \
        $(top_builddir)/src/autodisc/libbabeltrace2-autodisc.la \
+       $(top_builddir)/src/param-parse/libbabeltrace2-param-parse.la \
        $(top_builddir)/src/lib/libbabeltrace2.la \
        $(top_builddir)/src/compat/libcompat.la \
        $(top_builddir)/src/common/libbabeltrace2-common.la \
        $(top_builddir)/src/logging/libbabeltrace2-logging.la \
-       $(top_builddir)/src/ctfser/libbabeltrace2-ctfser.la \
-       $(top_builddir)/src/param-parse/libbabeltrace2-param-parse.la
+       $(top_builddir)/src/ctfser/libbabeltrace2-ctfser.la
 
 if ENABLE_BUILT_IN_PLUGINS
 # Takes a plugin name and outputs the needed LDFLAGS to embed it.
This page took 0.024462 seconds and 4 git commands to generate.