summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2003-01-04 15:40:45 +0000
committerdrahn <drahn@openbsd.org>2003-01-04 15:40:45 +0000
commit19fd3f854c57be95beebcb291100800f9b76ed23 (patch)
tree8ccb068c556d28de5a9bd98d1dba026ce09d7f6d
parentRemove some debug output. -moj (diff)
downloadwireguard-openbsd-19fd3f854c57be95beebcb291100800f9b76ed23.tar.xz
wireguard-openbsd-19fd3f854c57be95beebcb291100800f9b76ed23.zip
Remove the support to force linking against a specific shlib major.minor.
This behavior broke libraries which were named libN-X.Y.so.A.B. ok pval, espie
-rw-r--r--gnu/usr.bin/binutils/ld/emultempl/elf32.em4
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/ld/emultempl/elf32.em b/gnu/usr.bin/binutils/ld/emultempl/elf32.em
index 8d4b0636fd0..394e21b3f7f 100644
--- a/gnu/usr.bin/binutils/ld/emultempl/elf32.em
+++ b/gnu/usr.bin/binutils/ld/emultempl/elf32.em
@@ -100,10 +100,13 @@ gld${EMULATION_NAME}_search_dir (dirname, filename)
force_maj = -1;
force_min = -1;
dot = strchr (filename, '.');
+#ifdef DO_FORCE_VERS
if (dot == NULL)
{
+#endif /* DO_FORCE_VERS */
len = strlen (filename);
alc = NULL;
+#ifdef DO_FORCE_VERS
}
else
{
@@ -119,6 +122,7 @@ gld${EMULATION_NAME}_search_dir (dirname, filename)
if (dot != NULL)
force_min = atoi (dot + 1);
}
+#endif /* DO_FORCE_VERS */
found = NULL;
max_maj = max_min = 0;