OBS-URL: https://build.opensuse.org/package/show/network:telephony/libosmocore?expand=0&rev=10
41 lines
1.7 KiB
Diff
41 lines
1.7 KiB
Diff
From 0929c5b1d3ae71fb600120fd5c60221495b8391c Mon Sep 17 00:00:00 2001
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
Date: Thu, 2 Oct 2014 22:22:28 +0200
|
|
Subject: [PATCH] build: fix linker error with kasumi_test
|
|
|
|
When the osmocore package is configured with --disable-static,
|
|
building of kasumi_test fails. This seems quite legit, given
|
|
the function _kasumi_kgcore is not exported.
|
|
Don't try to workaround the build system. Include the code.
|
|
|
|
CCLD kasumi/kasumi_test
|
|
kasumi_test.o: In function `test_expansion':
|
|
~tests/kasumi/kasumi_test.c:25: undefined reference to `_kasumi_key_expand'
|
|
kasumi_test.o: In function `main':
|
|
~tests/kasumi/kasumi_test.c:56: undefined reference to `_kasumi'
|
|
~tests/kasumi/kasumi_test.c:100: undefined reference to `_kasumi_key_expand'
|
|
~tests/kasumi/kasumi_test.c:112: undefined reference to `_kasumi_kgcore'
|
|
[...]
|
|
---
|
|
tests/Makefile.am | 3 +--
|
|
1 file changed, 1 insertion(+), 2 deletions(-)
|
|
|
|
diff --git a/tests/Makefile.am b/tests/Makefile.am
|
|
index 8779c4f..3f7db1f 100644
|
|
--- a/tests/Makefile.am
|
|
+++ b/tests/Makefile.am
|
|
@@ -20,9 +20,8 @@ utils_utils_test_LDADD = $(top_builddir)/src/libosmocore.la
|
|
a5_a5_test_SOURCES = a5/a5_test.c
|
|
a5_a5_test_LDADD = $(top_builddir)/src/libosmocore.la $(top_builddir)/src/gsm/libosmogsm.la
|
|
|
|
-kasumi_kasumi_test_SOURCES = kasumi/kasumi_test.c
|
|
+kasumi_kasumi_test_SOURCES = kasumi/kasumi_test.c ../src/gsm/kasumi.c
|
|
kasumi_kasumi_test_LDADD = $(top_builddir)/src/libosmocore.la $(top_builddir)/src/gsm/libosmogsm.la
|
|
-kasumi_kasumi_test_LDFLAGS = -static
|
|
|
|
comp128_comp128_test_SOURCES = comp128/comp128_test.c
|
|
comp128_comp128_test_LDADD = $(top_builddir)/src/libosmocore.la $(top_builddir)/src/gsm/libosmogsm.la
|
|
--
|
|
2.0.0
|
|
|