summaryrefslogtreecommitdiffstats
path: root/src/config.h.cmake
diff options
context:
space:
mode:
authorAlexander Golubev <fatzer2@gmail.com>2025-10-03 10:48:01 +0300
committerAlexander Golubev <fatzer2@gmail.com>2025-10-03 11:50:33 +0300
commit47ca6398b7cfa9c8f8d41f736162cd8232853db7 (patch)
tree7b9bdc229f46ec3d06f3b01968f469858dcf3f58 /src/config.h.cmake
parentf12839f5bbc48e51c4873478477be5b33da1e4a5 (diff)
downloadlibr-47ca6398.tar.gz
libr-47ca6398.zip
Use compilation config-time checks instead of linker versionr14.1.5
To rely on current linker's version to determine the libbfd version is unreliable. In particular it's likely to yield wrong result in next use-cases: - cross-compilations - build with non-GNU toolchain - just build with another linker version Unfortunately libbfd doesn't provide a reliable way to retrieve version information, so we will have to check for features in specific versions we are interested in. Note: this essentially reverts most of the changes introduced by c57eae31615bc70072c7e99d712c2285817bd2e5. Signed-off-by: Alexander Golubev <fatzer2@gmail.com> (cherry picked from commit 8380fc26a471d64bcddc38a2bce9442f6386b805)
Diffstat (limited to 'src/config.h.cmake')
-rw-r--r--src/config.h.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/config.h.cmake b/src/config.h.cmake
index 8842734..e2673d2 100644
--- a/src/config.h.cmake
+++ b/src/config.h.cmake
@@ -8,5 +8,8 @@
language is requested. */
#define ENABLE_NLS 1
-/* Define Binutils linker version code */
-#cmakedefine LINKER_VERSION_C @LINKER_VERSION_C@
+/* Define to 1 if you have Binutils >= 2.34 */
+#cmakedefine HAVE_BFD_2_34 1
+
+/* Define to 1 if you have Binutils >= 2.45 */
+#cmakedefine HAVE_BFD_2_45 1