laforge submitted this change.
build: fix linking gen__pfcp_ies_auto to use build-tree libosmo-gtlv
By moving *_LIBS to libosmo_pfcp_la_LIBADD, fix linking of
gen__pfcp_ies_auto to prefer the locally built libosmo-gtlv over a
system installed one.
Related: OS#5942
Change-Id: I2e92238b214d8e79bab1095d6093139bad05bc66
---
M src/libosmo-pfcp/Makefile.am
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/src/libosmo-pfcp/Makefile.am b/src/libosmo-pfcp/Makefile.am
index 123aff3..a26d5b2 100644
--- a/src/libosmo-pfcp/Makefile.am
+++ b/src/libosmo-pfcp/Makefile.am
@@ -11,11 +11,6 @@
$(LIBOSMOGSM_CFLAGS) \
$(NULL)
-AM_LDFLAGS = \
- $(LIBOSMOCORE_LIBS) \
- $(LIBOSMOGSM_LIBS) \
- $(NULL)
-
lib_LTLIBRARIES = \
libosmo-pfcp.la \
$(NULL)
@@ -30,6 +25,12 @@
pfcp_ies_auto.c \
$(NULL)
+libosmo_pfcp_la_LIBADD = \
+ $(top_builddir)/src/libosmo-gtlv/libosmo-gtlv.la \
+ $(LIBOSMOCORE_LIBS) \
+ $(LIBOSMOGSM_LIBS) \
+ $(NULL)
+
# This is _NOT_ the library release version, it's an API version.
# Please read Chapter 6 "Library interface versions" of the libtool
# documentation before making any modification
To view, visit change 31741. To unsubscribe, or for help writing mail filters, visit settings.