Commit Graph

28 Commits

Author SHA1 Message Date
Eric Wild ed469d82a0 configure.ac: fix libtool issue with clang and sanitizer
[this fix already exists in most of the other repos]

As pointed out at https://github.com/libexpat/libexpat/issues/312
libtool does not play nice with clang sanitizer builds at all.
For those builds LD shoud be set to clang too (and LDFLAGS needs the
sanitizer flags as well), because the clang compiler driver knows how
linking to the sanitizer libs works, but then at a later stage libtool
fails to actually produce the shared libraries and the build fails. This
is fixed by this patch.

Addtionally LD_LIBRARY_PATH has no effect on conftest runs during
configure time, so the rpath needs to be set to the asan library path to
ensure the configure run does not fail due to a missing asan library,
i.e.:

SANS='-fsanitize=memory -fsanitize-recover=all -shared-libsan'
export CC=clang-10
ASANPATH=$(dirname `$CC -print-file-name=libclang_rt.asan-x86_64.so`)
export LDFLAGS="-Wl,-rpath,$ASANPATH $SANS $LDFLAGS"

Change-Id: I13fa39e440b5e7d2231454c6f3a1de55e6025399
2023-05-15 17:06:08 +02:00
Vadim Yanitskiy 1a15bb6f82 configure: fix warning: AC_OUTPUT should be used without arguments
Change-Id: I32b07f8f8c3f4092683fa6a25a7e895f188640b7
2022-08-04 20:07:23 +07:00
Oliver Smith 20cbe33d05 configure.ac: set -std=gnu11
Change-Id: I7d4c4e1f3663e448c5d044ccb4bbd3e813898f23
2021-01-27 17:30:19 +01:00
Oliver Smith f12d4240a0 contrib: integrate RPM spec
Remove OpenSUSE bug report link, set version to @VERSION@, make it build with
CentOS 8 etc.

Related: OS#4550
Change-Id: Ibf21cfd2ea3f3d0def3c18374118c4cb03a45e05
2020-05-19 15:21:45 +02:00
Vadim Yanitskiy 27bc25cd9f configure.ac: disable building libgsmhr by default
At the moment, Half Rate codec support is limited. There are still
some issues with encoding of the reference files (see OS#2514),
and moreover AddressSanitizer is not happy about libgsmhr...

Change-Id: Ib86f3f972fc31c7eedf7ed75a7c356ac62e47dc6
Related: OS#2514
2018-07-03 17:03:28 +00:00
Harald Welte 1bb3ef6d90 Merge "Add --enable-sanitize configure option" 2018-02-14 00:46:04 +00:00
Max 725e0038ee Add --enable-sanitize configure option
Change-Id: Ibb26e5fc73843f3951dbc534653ee7d88e4c80e7
2018-02-12 13:04:32 +01:00
Vadim Yanitskiy 35c45f2dc5 tests: enable / disable codec tests conditionally
As the libosmogapk actually relies on external libraries for
audio coding, we should enable / disable particular codec
tests depending on the build configuration.

Closes: OS#2926
Change-Id: Ie4711294c43ff88b17431615883abf96d1ae02a6
2018-02-12 01:32:43 +07:00
Vadim Yanitskiy f069eb37fe Init automake test environment 2017-12-31 12:21:00 +01:00
Vadim Yanitskiy 6831ebd958 configure.ac: use actual bug report address in AC_INIT 2017-12-31 12:20:59 +01:00
Vadim Yanitskiy f8d91a07b4 osmo-gapk: use more convenient name for the source file
Since GAPK package contains a library and the representative
osmo-gapk application, the 'main.c' looks a bit confusing. Let's
use the common naming scheme.
2017-12-31 12:20:59 +01:00
Vadim Yanitskiy 4f0a47d0e3 Add the symbol export map for libosmogapk 2017-12-31 12:20:59 +01:00
Vadim Yanitskiy 40d59f14a2 Add a pkg-config manifest for libosmogapk
In order to make pkg-config 'see' the libosmogapk, a corresponding
package description is required. For more details, see:

https://autotools.io/pkgconfig/file-format.html
2017-12-31 12:20:59 +01:00
Vadim Yanitskiy 30209ceddd Install GAPK headers to '${includedir}/osmocom/gapk/'
To be able to use the library, external applications need to know,
which symbols are exposed. This information is provided by header
files, which are being installed to a system's ${includedir}
since this change.
2017-12-31 12:20:59 +01:00
Harald Welte 2ae47af0be Add ALSA input/output support to GAPK
The ALSA source/sink uses the pcm-s16le format.
2017-05-28 01:56:33 +02:00
Sylvain Munaut ac967d20fd build: Don't build static libraries
They won't be supported anyway when using the 'bss switcheroo' hack
for libgsmhr

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-12-30 11:44:37 +01:00
Sylvain Munaut ea1c6c61f4 build: Use autotools 'subdir-objects' option
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2015-12-30 11:44:37 +01:00
Harald Welte 0790f03eb9 add git-version-gen to auto-generate version from git repo tags 2015-11-05 21:25:32 +01:00
Harald Welte ce94d971e1 gapk: Add support for RTP input/output streams
Instead of having only file-based I/O, this enables gapk to receive and
send RTP streams, e.g. from live GSM network equipment like
sysmoBTS/nanoBTS.

Support is currently simplistic.  On transmit, there is hard-coded codec
type of full-rate GSM.  On receive-side, we should auto-detect the
format based on frame size and/or payload type, but we don't do that yet
at all.
2013-02-11 11:38:23 +01:00
Sylvain Munaut 19428ca7bf autotools: Add AC_LANG_SOURCE required for autotools >= 2.68
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2011-09-30 12:15:12 +02:00
Sylvain Munaut 3c9c2fb6ee Fix error in configure.ac preventing compiling without opencore-amrnb
Obvious typo ...

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-13 00:19:09 +01:00
Sylvain Munaut aa55d30d20 [2/4] HR support: Add logic to fetch reference source code and build it
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-12 20:47:30 +01:00
Sylvain Munaut 0d2a82c312 [1/4] HR support: Add autotools skeleton for libgsmhr
Not functional yet, just the autotools magic to make a library

Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-12 20:36:14 +01:00
Sylvain Munaut 8552b9dc0c codec/efr: Add support for encoding/decoding using OpenCore AMR NB
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-11 20:26:41 +01:00
Sylvain Munaut dc5b38b991 codec/fr: Add support for encoding/decoding using libgsm
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-11-11 20:26:41 +01:00
Sylvain Munaut 553b3b6002 Add dependency to libosmocodec (part of libosmocore)
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-29 11:49:33 +02:00
Sylvain Munaut 294db60a4e utils: Add various bit manipulation related utilites
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-29 11:49:33 +02:00
Sylvain Munaut 96b1c3b2b4 Initial skeleton import
Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
2010-10-24 10:22:06 +02:00