On 4/26/2015 7:09 AM, [email protected] via RT wrote:
This discussion relates to 1.0.2a. But I know its applies to other
versions from all the changes I've had to make to Makefile.org.

I'm not sure if this me using Configure incorrectly, or a bug in
Configure. I suspect its the later.

Below, I used both --prefix and --openssldir in an attempt to set them.

If there is difficulty in determining what should be done, then
perhaps there should be a --rpath Configure option.

As a matter of fact, I tried to add an --rpath option to Configure.
The LDFLAGS are not being honored in the build system. Sigh....

*****

./Configure linux-x86_64 shared no-ssl2 no-ssl3 no-comp
--openssldir=/usr/local/ssl --prefix=/usr/local/ssl
make depend
make

does this show the RPATH and NEEDED libs:
readelf -d

Did you do an install?

If you need to test before install, you can set/export LD_LIBRARY_PATH
to the directory eith the libs.



ldd ./apps/openssl
     linux-vdso.so.1 =>  (0x00007ffc555f8000)
     libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0
(0x00007fa0e8174000)
     libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(0x00007fa0e7d99000)
     ...
ldd ./apps/openssl
     linux-vdso.so.1 =>  (0x00007ffef14c8000)
     libssl.so.1.0.0 => /lib/x86_64-linux-gnu/libssl.so.1.0.0
(0x00007ff03065b000)
     libcrypto.so.1.0.0 => /lib/x86_64-linux-gnu/libcrypto.so.1.0.0
(0x00007ff030280000)
     ...

*****

$ grep -i rpath *
CHANGES:  *) Add full support for -rpath/-R, both in shared libraries and
CHANGES:     uses the RPATH feature, and is available through the special
CHANGES:     configuration target "alpha-cc-rpath", which will never be selected
...
Makefile:        SDIRS='$(SDIRS)' LIBRPATH='$(INSTALLTOP)/$(LIBDIR)'    \
Makefile.bak:        SDIRS='$(SDIRS)' LIBRPATH='$(INSTALLTOP)/$(LIBDIR)'    \
Makefile.org:        SDIRS='$(SDIRS)' LIBRPATH='$(INSTALLTOP)/$(LIBDIR)'    \
Makefile.shared:DO_GNU_APP=LDFLAGS="$(CFLAGS) -Wl,-rpath,$(LIBRPATH)"
Makefile.shared:    LDFLAGS="$(CFLAGS) -Wl,-rpath,$(LIBPATH)"; \
Makefile.shared:        LDFLAGS="$(CFLAGS) -rpath $(LIBRPATH)"; \
Makefile.shared:        LDFLAGS="$(CFLAGS) -R $(LIBRPATH)"; \
Makefile.shared:    @LDFLAGS="$(CFLAGS) -Wl,-rpath,$(LIBRPATH)"; \
Makefile.shared:    LDFLAGS="$(CFLAGS)
-Wl,+s,+cdp,../:,+cdp,./:,+b,$(LIBRPATH)"; \
Makefile.shared:    LDFLAGS="$(CFLAGS)
-Wl,-brtl,-blibpath:$(LIBRPATH):$${LIBPATH:-/usr/lib:/lib}"; \
Makefile.shared:symlink.cygwin symlink.alpha-osf1 symlink.tru64
symlink.tru64-rpath symlink.beos:
Makefile.shared:link_o.tru64-shared-rpath: link_o.tru64-rpath
Makefile.shared:link_a.tru64-shared-rpath: link_a.tru64-rpath
Makefile.shared:link_app.tru64-shared-rpath: link_app.tru64-rpath
Makefile.shared:symlink.tru64-shared-rpath: symlink.tru64-rpath
...



_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev


--

 Douglas E. Engert  <[email protected]>

_______________________________________________
openssl-dev mailing list
To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-dev

Reply via email to