mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-08 11:02:24 +01:00
e7cf8c5785
When using the recent dlsym() based wrapper, we are not requiring any
symbol from libmd, as we resolve those dynamically at run-time. We were
ending up linking against libmd because in another part of the code we
require (depending on the architecture) the SHA512 functions for the
getentropy() local implementation. But that function might be provided
by the system libc on some systems, which means we end up not linking
against libmd at all.
To solve this we go back to the previous simpler solution of linking
directly, which had the main drawback of then making programs fail to
link when not specifying -lmd (on platforms that need it). And then
switch the .so link point from a symlink to a linker script, so that we
can inject the -lmd library as-needed. This is similar to what glibc is
doing.
Fixes: commit
|
||
---|---|---|
.. | ||
.gitignore | ||
arc4random.c | ||
bzero.c | ||
closefrom.c | ||
endian.c | ||
fgetln.c | ||
fparseln.c | ||
fpurge.c | ||
funopen.c | ||
headers-overlay.sh | ||
headers-system.sh | ||
humanize.c | ||
Makefile.am | ||
md5.c | ||
nlist.c | ||
overlay.c | ||
proctitle.c | ||
progname.c | ||
pwcache.c | ||
setmode.c | ||
strl.c | ||
strmode.c | ||
strnstr.c | ||
test-stream.c | ||
test-stream.h | ||
vis-openbsd.c | ||
vis.c |