On 07/17/2013 11:53 AM, Thomas Jahns wrote:
Hello,
On 07/16/13 11:23, Sergio Belkin wrote:
I have a configure.ac with following:
AS_CASE([$host], [x86_64*|sparc64*|s390x*|ppc64*], [libdir=$prefix/lib64],
[libdir=$prefix/lib])
how does this work for users having -m32 (gcc) or -q32 (xlc) set in their
compiler flags?
It does not work at all, because this approach does not take into
account GCC's search path depends on the compiler flags being used.
I'done it in order to make easy the install of package and choose the
libdir according to arch. But I've found that I can't override if I run
./configure llibdir=/whatever and even distros like Debian put libraries in
/usr/lib//x86_64-linux-gnu
is there a way to fix it?
I couldn't propose anything.
No surprize ;)
libdir is an input-parameter to configure, which is supposed to point to
an arbitrary user specified directory.
If one wants to install into a directory GCC and ldd search for
libraries, you can not avoid to explicitly specify one (There are
several ones).
Ralf
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf