2015-12-23 18:15:35 +01:00
|
|
|
From 84cb7836dfb9cee206e7d2bd552d4a71fbea4aef Mon Sep 17 00:00:00 2001
|
2014-10-02 23:36:14 +02:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: Thu, 2 Oct 2014 23:26:16 +0200
|
|
|
|
Subject: [PATCH] build: support external libtalloc
|
|
|
|
|
|
|
|
---
|
2016-01-22 19:26:27 +01:00
|
|
|
configure.ac | 1 +
|
|
|
|
examples/Makefile.am | 26 +++++++++++++-------------
|
|
|
|
examples/channel/Makefile.am | 6 +++---
|
|
|
|
src/Makefile.am | 4 ++--
|
|
|
|
src/channel/abis/Makefile.am | 4 ++--
|
2014-10-02 23:36:14 +02:00
|
|
|
5 files changed, 21 insertions(+), 20 deletions(-)
|
|
|
|
|
2017-10-03 01:06:33 +02:00
|
|
|
Index: libosmo-netif-0.0.6.85/configure.ac
|
2016-01-22 19:26:27 +01:00
|
|
|
===================================================================
|
2017-10-03 01:06:33 +02:00
|
|
|
--- libosmo-netif-0.0.6.85.orig/configure.ac
|
|
|
|
+++ libosmo-netif-0.0.6.85/configure.ac
|
|
|
|
@@ -68,6 +68,7 @@ AC_SEARCH_LIBS([sctp_send], [sctp], [
|
2016-01-22 19:26:27 +01:00
|
|
|
AC_MSG_ERROR([sctp_send not found in searched libs])])
|
|
|
|
LIBS=$old_LIBS
|
2014-10-02 23:36:14 +02:00
|
|
|
|
2016-01-22 19:26:27 +01:00
|
|
|
+PKG_CHECK_MODULES([TALLOC], [talloc])
|
2014-10-02 23:36:14 +02:00
|
|
|
AC_CHECK_HEADERS(dahdi/user.h,,AC_MSG_WARN(DAHDI input driver will not be built))
|
|
|
|
|
2017-10-03 01:06:33 +02:00
|
|
|
AC_ARG_ENABLE(doxygen,
|
|
|
|
Index: libosmo-netif-0.0.6.85/examples/Makefile.am
|
2016-01-22 19:26:27 +01:00
|
|
|
===================================================================
|
2017-10-03 01:06:33 +02:00
|
|
|
--- libosmo-netif-0.0.6.85.orig/examples/Makefile.am
|
|
|
|
+++ libosmo-netif-0.0.6.85/examples/Makefile.am
|
2014-10-02 23:36:14 +02:00
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include
|
|
|
|
-AM_CFLAGS=-Wall -g $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(COVERAGE_CFLAGS)
|
|
|
|
+AM_CFLAGS=-Wall -g $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(COVERAGE_CFLAGS) $(TALLOC_CFLAGS)
|
|
|
|
AM_LDFLAGS = $(COVERAGE_LDFLAGS)
|
|
|
|
|
|
|
|
SUBDIRS = channel
|
|
|
|
@@ -19,48 +19,48 @@ noinst_PROGRAMS = ipa-stream-client \
|
|
|
|
|
|
|
|
ipa_stream_client_SOURCES = ipa-stream-client.c
|
|
|
|
ipa_stream_client_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
ipa_stream_server_SOURCES = ipa-stream-server.c
|
|
|
|
ipa_stream_server_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
lapd_over_datagram_user_SOURCES = lapd-over-datagram-user.c
|
|
|
|
lapd_over_datagram_user_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
$(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) \
|
|
|
|
- $(LIBOSMOABIS_LIBS)
|
|
|
|
+ $(LIBOSMOABIS_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
lapd_over_datagram_network_SOURCES = lapd-over-datagram-network.c
|
|
|
|
lapd_over_datagram_network_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
$(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) \
|
|
|
|
- $(LIBOSMOABIS_LIBS)
|
|
|
|
+ $(LIBOSMOABIS_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
stream_client_SOURCES = stream-client.c
|
|
|
|
stream_client_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
stream_server_SOURCES = stream-server.c
|
|
|
|
stream_server_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
rs232_read_SOURCES = rs232-read.c
|
|
|
|
-rs232_read_LDADD = $(top_builddir)/src/libosmonetif.la $(LIBOSMOCORE_LIBS)
|
|
|
|
+rs232_read_LDADD = $(top_builddir)/src/libosmonetif.la $(LIBOSMOCORE_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
rs232_write_SOURCES = rs232-write.c
|
|
|
|
-rs232_write_LDADD = $(top_builddir)/src/libosmonetif.la $(LIBOSMOCORE_LIBS)
|
|
|
|
+rs232_write_LDADD = $(top_builddir)/src/libosmonetif.la $(LIBOSMOCORE_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
rtp_udp_test_client_SOURCES = rtp-udp-test-client.c
|
|
|
|
rtp_udp_test_client_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
rtp_udp_test_server_SOURCES = rtp-udp-test-server.c
|
|
|
|
rtp_udp_test_server_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
osmux_test_input_SOURCES = osmux-test-input.c
|
|
|
|
osmux_test_input_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
osmux_test_output_SOURCES = osmux-test-output.c
|
|
|
|
osmux_test_output_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
2017-10-03 01:06:33 +02:00
|
|
|
Index: libosmo-netif-0.0.6.85/examples/channel/Makefile.am
|
2016-01-22 19:26:27 +01:00
|
|
|
===================================================================
|
2017-10-03 01:06:33 +02:00
|
|
|
--- libosmo-netif-0.0.6.85.orig/examples/channel/Makefile.am
|
|
|
|
+++ libosmo-netif-0.0.6.85/examples/channel/Makefile.am
|
2014-10-02 23:36:14 +02:00
|
|
|
@@ -1,5 +1,5 @@
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include
|
|
|
|
-AM_CFLAGS=-Wall -g $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(COVERAGE_CFLAGS)
|
|
|
|
+AM_CFLAGS=-Wall -g $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(COVERAGE_CFLAGS) $(TALLOC_CFLAGS)
|
|
|
|
AM_LDFLAGS = $(COVERAGE_LDFLAGS)
|
|
|
|
|
|
|
|
noinst_PROGRAMS = abis_ipa_stream_server \
|
2016-01-22 19:26:27 +01:00
|
|
|
@@ -7,8 +7,8 @@ noinst_PROGRAMS = abis_ipa_stream_server
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
abis_ipa_stream_server_SOURCES = abis_ipa_stream_server.c
|
|
|
|
abis_ipa_stream_server_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
|
|
|
|
|
|
|
abis_ipa_stream_client_SOURCES = abis_ipa_stream_client.c
|
|
|
|
abis_ipa_stream_client_LDADD = $(top_builddir)/src/libosmonetif.la \
|
|
|
|
- $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS)
|
|
|
|
+ $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(TALLOC_LIBS)
|
2017-10-03 01:06:33 +02:00
|
|
|
Index: libosmo-netif-0.0.6.85/src/Makefile.am
|
2016-01-22 19:26:27 +01:00
|
|
|
===================================================================
|
2017-10-03 01:06:33 +02:00
|
|
|
--- libosmo-netif-0.0.6.85.orig/src/Makefile.am
|
|
|
|
+++ libosmo-netif-0.0.6.85/src/Makefile.am
|
2014-10-02 23:36:14 +02:00
|
|
|
@@ -3,14 +3,14 @@
|
2015-12-23 18:15:35 +01:00
|
|
|
LIBVERSION=3:0:0
|
2014-10-02 23:36:14 +02:00
|
|
|
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)
|
2015-12-23 18:15:35 +01:00
|
|
|
-AM_CFLAGS= -fPIC -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(COVERAGE_CFLAGS) $(LIBSCTP_CFLAGS)
|
|
|
|
+AM_CFLAGS= -fPIC -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOABIS_CFLAGS) $(COVERAGE_CFLAGS) $(LIBSCTP_CFLAGS) $(TALLOC_CFLAGS)
|
2014-10-02 23:36:14 +02:00
|
|
|
AM_LDFLAGS = $(COVERAGE_LDFLAGS)
|
|
|
|
|
|
|
|
SUBDIRS = channel
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libosmonetif.la
|
|
|
|
|
2015-12-23 18:15:35 +01:00
|
|
|
-libosmonetif_la_LIBADD = channel/abis/libosmonetif-abis.la $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBSCTP_LIBS)
|
|
|
|
+libosmonetif_la_LIBADD = channel/abis/libosmonetif-abis.la $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBSCTP_LIBS) $(TALLOC_LIBS)
|
2014-10-02 23:36:14 +02:00
|
|
|
libosmonetif_la_LDFLAGS = -version-info $(LIBVERSION) -no-undefined
|
|
|
|
|
|
|
|
libosmonetif_la_SOURCES = amr.c \
|
2017-10-03 01:06:33 +02:00
|
|
|
Index: libosmo-netif-0.0.6.85/src/channel/abis/Makefile.am
|
2016-01-22 19:26:27 +01:00
|
|
|
===================================================================
|
2017-10-03 01:06:33 +02:00
|
|
|
--- libosmo-netif-0.0.6.85.orig/src/channel/abis/Makefile.am
|
|
|
|
+++ libosmo-netif-0.0.6.85/src/channel/abis/Makefile.am
|
2014-10-02 23:36:14 +02:00
|
|
|
@@ -1,9 +1,9 @@
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)
|
|
|
|
-AM_CFLAGS= -fPIC -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(COVERAGE_CFLAGS)
|
|
|
|
+AM_CFLAGS= -fPIC -Wall $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS) $(LIBOSMOVTY_CFLAGS) $(COVERAGE_CFLAGS) $(TALLOC_CFLAGS)
|
|
|
|
AM_LDFLAGS = $(COVERAGE_LDFLAGS)
|
|
|
|
|
|
|
|
noinst_LTLIBRARIES = libosmonetif-abis.la
|
|
|
|
|
|
|
|
libosmonetif_abis_la_SOURCES = ipa_stream_server.c \
|
|
|
|
ipa_stream_client.c
|
|
|
|
-libosmonetif_abis_la_LIBADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOVTY_LIBS)
|
|
|
|
+libosmonetif_abis_la_LIBADD = $(LIBOSMOCORE_LIBS) $(LIBOSMOGSM_LIBS) $(LIBOSMOVTY_LIBS) $(TALLOC_LIBS)
|