From 56ddd3f62b9cdba70e07a260bb9504eb85a7d7f5 Mon Sep 17 00:00:00 2001 From: jca Date: Tue, 2 Aug 2016 16:09:55 +0000 Subject: [PATCH] Ignore the -bindir option, meaningless on OpenBSD. Lack of -bindir handling is not a problem right now because -bindir is passed to cc(1) which ignores it, and because read(2) on /usr/local/bin returns 0 right now, so ld(1) copes with it. But there are plans to make read(2) fail with EISDIR. Input from and bulk builds thanks to ajacoutot@, ok ajacoutot@ espie@ --- usr.bin/libtool/LT/Mode/Link.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr.bin/libtool/LT/Mode/Link.pm b/usr.bin/libtool/LT/Mode/Link.pm index b5c16cedf66..1a21434688d 100644 --- a/usr.bin/libtool/LT/Mode/Link.pm +++ b/usr.bin/libtool/LT/Mode/Link.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Link.pm,v 1.31 2016/04/27 09:50:57 ajacoutot Exp $ +# $OpenBSD: Link.pm,v 1.32 2016/08/02 16:09:55 jca Exp $ # # Copyright (c) 2007-2010 Steven Mestdagh # Copyright (c) 2012 Marc Espie @@ -127,6 +127,7 @@ sub run 'all-static', 'allow-undefined', # we don't care about THAT one 'avoid-version', + 'bindir:', 'dlopen:', 'dlpreopen:', 'export-dynamic', @@ -152,7 +153,7 @@ sub run 'version-info:', 'version-number:'); - # XXX options ignored: dlopen, dlpreopen, no-fast-install, + # XXX options ignored: bindir, dlopen, dlpreopen, no-fast-install, # no-install, no-undefined, precious-files-regex, # shrext, thread-safe, prefer-pic, prefer-non-pic -- 2.20.1