summaryrefslogtreecommitdiff
path: root/usr.bin/libtool/LT/Mode/Link.pm
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/libtool/LT/Mode/Link.pm')
-rw-r--r--usr.bin/libtool/LT/Mode/Link.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/libtool/LT/Mode/Link.pm b/usr.bin/libtool/LT/Mode/Link.pm
index 7c504400c1a..7713a17d36e 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.14 2012/07/12 11:59:38 espie Exp $
+# $OpenBSD: Link.pm,v 1.15 2012/07/12 12:20:06 espie Exp $
#
# Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org>
# Copyright (c) 2012 Marc Espie <espie@openbsd.org>
@@ -147,7 +147,7 @@ sub run
'prefer-non-pic',
'release:',
'rpath:@',
- # 'L', sub { shortdie "libtool does not allow spaces in -L dir\n"},
+ 'L:!', sub { shortdie "libtool does not allow spaces in -L dir\n"},
'R:@',
'shrext:',
'static',
@@ -182,6 +182,7 @@ sub run
my $linkmode = PROGRAM;
if ($ofile =~ m/\.l?a$/) {
$linkmode = LIBRARY;
+ $gp->handle_permuted_options('x:!');
}
tsay {"linkmode: $linkmode"};