]> www.ginac.de Git - ginac.git/commit
configure: correctly set rpath for linking with CLN ...
authorAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Thu, 23 Feb 2012 13:16:55 +0000 (15:16 +0200)
committerAlexei Sheplyakov <Alexei.Sheplyakov@gmail.com>
Thu, 23 Feb 2012 13:16:55 +0000 (15:16 +0200)
commit012ea7fa628fe97e72469af6b6703515eee24d3a
tree4e8bae3755cc05adbab70054ca718f59fd751740
parenta104ecb34a015fc40a4bdc16ae6ea038ecb8c55d
configure: correctly set rpath for linking with CLN ...

... as to not break tests for libreadline and dlopen().

Problem:

When using GCC 4.6 the configure script fails to find libreadline and
libdl, although both libraries are definitely installed. See
http://www.ginac.de/pipermail/ginac-list/2012-January/001868.html for
more details.

Reason:

Apparently GCC 4.6 dislikes the -R/the/path switch (libtool way to say
-Wl,-rpath,/the/path in a cross platform manner). Previous versions of
GCC used to ignore the -R switch, however, GCC 4.6 errors out instead.
Thus the configure script fails to detect readline and dlopen.

Solution:

Set the rpath (for linking with CLN) using the compiler friendly syntax
(i.e. -Wl,-rpath -Wl,/the/path instead of -R/the/path).
configure.ac