How does this approach look? Should be more generic.
--- Mike Frysinger <[EMAIL PROTECTED]> wrote:
> On Friday 13 January 2006 11:38, Lee Thompson wrote:
> > The code certainly runs so is your issue a point
> of
> > coding style?
>
> just because the path is correct on your machine has
> no relevance to anyone
> else, and forcing people to install into
> "/opt/assembly/lib" wont fly
> -mike
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
diff -Nru openssl-0.9.8.orig/Configure openssl-0.9.8/Configure
--- openssl-0.9.8.orig/Configure 2006-01-13 18:04:14.000000000 -0600
+++ openssl-0.9.8/Configure 2006-01-14 10:22:37.000000000 -0600
@@ -35,6 +35,10 @@
# --with-krb5-flavor Declare what flavor of Kerberos 5 is used. Currently
# supported values are "MIT" and "Heimdal". A value is required.
#
+# --with-rpath Use rpath linking, only makes sense with the use of shared.
+# Default is to not use. If specified without a value, it
+# guesses the gnu linker "-Wl,-R${prefix}/lib" switch
+#
# --test-sanity Make a number of sanity checks on the data in this file.
# This is a debugging tool for OpenSSL developers.
#
@@ -626,6 +630,7 @@
my $openssl_sys_defines="";
my $openssl_other_defines;
my $libs;
+my $sldflags;
my $libkrb5="";
my $target;
my $options;
@@ -747,6 +752,14 @@
{
$withargs{"krb5-".$1}=$2;
}
+ elsif (/^--with-rpath=(.*)$/)
+ {
+ $sldflags.=$1." ";
+ }
+ elsif (/^--with-rpath$/)
+ {
+ $sldflags.="-Wl,-R$prefix/lib ";
+ }
else
{
print STDERR $usage;
@@ -1077,6 +1090,7 @@
}
$lflags="$libs$lflags" if ($libs ne "");
+$shared_ldflag="$sldflags$shared_ldflag" if ($sldflags ne "");
if ($no_asm)
{
diff -Nru openssl-0.9.8.orig/Makefile.org openssl-0.9.8/Makefile.org
--- openssl-0.9.8.orig/Makefile.org 2006-01-13 18:04:13.000000000 -0600
+++ openssl-0.9.8/Makefile.org 2006-01-13 18:28:21.000000000 -0600
@@ -287,7 +287,7 @@
echo 'Description: OpenSSL cryptography library'; \
echo 'Version: '$(VERSION); \
echo 'Requires: '; \
- echo 'Libs: -L$${libdir} -lcrypto $(EX_LIBS)'; \
+ echo 'Libs: $(SHARED_LDFLAGS) -L$${libdir} -lcrypto $(EX_LIBS)'; \
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libcrypto.pc
libssl.pc: Makefile
@@ -300,7 +300,7 @@
echo 'Description: Secure Sockets Layer and cryptography libraries'; \
echo 'Version: '$(VERSION); \
echo 'Requires: '; \
- echo 'Libs: -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
+ echo 'Libs: $(SHARED_LDFLAGS) -L$${libdir} -lssl -lcrypto $(EX_LIBS)'; \
echo 'Cflags: -I$${includedir} $(KRB5_INCLUDES)' ) > libssl.pc
openssl.pc: Makefile