+cc espie and jasper
Thanks for looking at it. Yup, that works, but I think I know
understand why I got confused first.
-bindir is just one option among others that should be recognized and
ignored in *link* mode. The following diff does just that, I think it
fits better in the existing code. I can successfully build
devel/libiscsi, -bindir /usr/local/bin doesn't get passed to cc(1).
Thoughts?
Index: Link.pm
===================================================================
RCS file: /cvs/src/usr.bin/libtool/LT/Mode/Link.pm,v
retrieving revision 1.31
diff -u -p -p -u -r1.31 Link.pm
--- Link.pm 27 Apr 2016 09:50:57 -0000 1.31
+++ Link.pm 1 Aug 2016 11:36:31 -0000
@@ -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