]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/openssl fix: xenial autoconf logic problem: gcc/ld got too smart... 14215/head
authorMarcus Watts <mdw@linuxbox.com>
Thu, 23 Feb 2017 07:30:52 +0000 (02:30 -0500)
committerMarcus Watts <mdw@linuxbox.com>
Thu, 23 Feb 2017 07:30:52 +0000 (02:30 -0500)
commit78c8be7a0df3d1c669f8a2a8fd7a5676d0823209
tree898d082d60453643f2e8051118d230b7bb870615
parent14a6aabe22f68436ea3297ce0851700f86ee5b12
rgw/openssl fix: xenial autoconf logic problem: gcc/ld got too smart...

On xenial, cc -o foo -lssl -lcrypto doesn't always
record libssl.so libcrypto.so as runtime library dependencies.
It is necessary to actually *use* a function from the library before
it gets recorded.  The ld(1) options "--as-needed" and "no-as-needed"
control this.  Evidently the default has changed in xenial.
That caused my smart "soname" detecting logic for openssl to
stop working.  To make it work, the test program has to
actually reference routines or variables inside the library.

This is a quick fix for xenial / autoconf.  There needs to be
a better fix for cmake and master.

Signed-off-by: Marcus Watts <mwatts@redhat.com>
configure.ac