diff options
author | Richard Levitte <levitte@openssl.org> | 2016-10-12 17:05:35 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-10-13 02:21:51 +0200 |
commit | fad599f7f147ee71e5581211fb654c2c8c491cd8 (patch) | |
tree | 47c6dd993626612757bf7e1a0db4a6ec359deee4 /Configure | |
parent | Remove automatic RPATH (diff) | |
download | openssl-fad599f7f147ee71e5581211fb654c2c8c491cd8.tar.xz openssl-fad599f7f147ee71e5581211fb654c2c8c491cd8.zip |
Remove automatic RPATH - add user rpath support
Make Configure recognise -rpath and -R to support user added rpaths
for OSF1 and Solaris. For convenience, add a variable LIBRPATH in the
Unix Makefile, which the users can use as follows:
./config [options] -Wl,-rpath,\$(LIBRPATH)
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'Configure')
-rwxr-xr-x | Configure | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -545,8 +545,9 @@ $config{build_type} = "release"; my %unsupported_options = (); my %deprecated_options = (); -foreach (@argvcopy) +while (@argvcopy) { + $_ = shift @argvcopy; # VMS is a case insensitive environment, and depending on settings # out of our control, we may receive options uppercased. Let's # downcase at least the part before any equal sign. @@ -733,6 +734,14 @@ foreach (@argvcopy) { $libs.=$_." "; } + elsif (/^-rpath$/ or /^-R$/) + # -rpath is the OSF1 rpath flag + # -R is the old Solaris rpath flag + { + my $rpath = shift(@argvcopy) || ""; + $rpath .= " " if $rpath ne ""; + $libs.=$_." ".$rpath; + } elsif (/^-static$/) { $libs.=$_." "; |