asn1c runtime code as shared library
Go to file
Eric Wild 3bbf20f17c configure.ac: fix libtool issue with clang and sanitizer
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: Ie38fa9985187c76b4e456d8b0a83006ef341b97e
2022-05-23 23:57:56 +02:00
contrib contrib/jenkins: Enable parallel make in make distcheck 2020-10-12 19:23:15 +02:00
debian Bump version: 0.9.32.4-c0d4 → 0.9.33 2021-02-23 16:52:29 +01:00
include Fix compiler warning 2017-10-27 22:05:13 +02:00
m4 add dummy 'm4/.dummy' file to make autoreconf happy 2010-07-09 15:46:03 +02:00
src Fix LIBVERSION not applied 2019-08-07 13:25:49 +02:00
.gitignore contrib: integrate RPM spec 2020-05-19 15:21:17 +02:00
.gitreview add .gitreview to support git review plugin 2017-08-08 13:56:42 +02:00
COPYING add COPYING with original licenes 2010-06-12 19:24:52 +02:00
Makefile.am build: Support make release target 2018-05-03 17:15:26 +02:00
asn1c-talloc.patch update to asn1c aper branch commit 6e00cbce7304a6972e82a12bb5fa82e41fa541be 2015-08-31 09:35:13 +02:00
configure.ac configure.ac: fix libtool issue with clang and sanitizer 2022-05-23 23:57:56 +02:00
git-version-gen configure.ac: Use git-version-gen to set VERSION 2018-05-03 18:21:05 +02:00
libasn1c.pc.in link libasn1c against libmath, don't ask users to do it 2017-10-28 13:58:23 +02:00