diff options
author | Brooks Davis <brooks@FreeBSD.org> | 2024-05-02 17:13:39 +0000 |
---|---|---|
committer | Brooks Davis <brooks@FreeBSD.org> | 2024-05-20 14:40:19 +0000 |
commit | 6edb14c006f6eafe1f31f54ce7fe2158321fa18d (patch) | |
tree | ecc176830b662e11d42fa07ce0d7ce88cf4f75c2 /tools/build | |
parent | 9c7f83bbb4cd8c1241ca1d8a0742bbfec0ddb068 (diff) | |
download | src-6edb14c006f6eafe1f31f54ce7fe2158321fa18d.tar.gz src-6edb14c006f6eafe1f31f54ce7fe2158321fa18d.zip |
Make WITHOUT_UNDEFINED_VERSION the default
Link with --no-undefined-version by default. Will detect and prevent
the accidental removal of symbols from versioned libraries.
(cherry picked from commit 4510f2ca9170927309a423274e03f1eb8e27da27)
This reverts commit b25ceb97eddcd58cfb2b433fe301ab28c678c249.
Reviewed by: arichardson, kib, dim, emaste
Differential Revision: https://reviews.freebsd.org/D44216
Diffstat (limited to 'tools/build')
-rw-r--r-- | tools/build/options/WITHOUT_UNDEFINED_VERSION | 2 | ||||
-rw-r--r-- | tools/build/options/WITH_UNDEFINED_VERSION | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/tools/build/options/WITHOUT_UNDEFINED_VERSION b/tools/build/options/WITHOUT_UNDEFINED_VERSION deleted file mode 100644 index 0e58eb00f3c1..000000000000 --- a/tools/build/options/WITHOUT_UNDEFINED_VERSION +++ /dev/null @@ -1,2 +0,0 @@ -Link libraries with --no-undefined-version to ensure all symbols are -provided. diff --git a/tools/build/options/WITH_UNDEFINED_VERSION b/tools/build/options/WITH_UNDEFINED_VERSION new file mode 100644 index 000000000000..71b048349a6f --- /dev/null +++ b/tools/build/options/WITH_UNDEFINED_VERSION @@ -0,0 +1,4 @@ +Link libraries with --undefined-version which permits version maps to +contain symbols that are not present in the library. +If this is necessicary to build a particular configuration, a bug is +present and the configuration should be reported. |