mirror of
https://github.com/stefanberger/libtpms
synced 2025-08-25 01:41:06 +00:00

The linker on FreeBSD seems to be broken and fails for other reasons when testing for support of the --version-script flag. The error that is reported is: local symbol 'environ' in /usr/lib/crt1.o is referenced by DSO. Also __progname is needed. To work around this problem we add a test.syms file that only has these two symbols in it, which is enough for the test in configure.ac and gives version script support in case of the broken linker. On FreeBSD TPM 1.2 related tests were failing due to test case 6 failures in case no linker script was used. (Very odd.) This patch fixes this problem. Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
10 lines
160 B
Plaintext
10 lines
160 B
Plaintext
# Symbol file for the linker. For testing in configure.ac only
|
|
TEST {
|
|
global:
|
|
# two work-around for a broken link
|
|
environ;
|
|
__progname;
|
|
local:
|
|
*;
|
|
};
|