How to force libtool to install 64-bit libraries for libffi in /lib instead of /lib64

Viewed 617

I'm trying to compile libffi 64-bit in a SLES-11 docker container.

The configure & make lines are dead simple:

./configure --prefix=/opt/<prog>/ --libdir=/opt/<prog>/lib
make 
make install

Now libtool in its glory decides to install the .so's like this:

/opt/<prog>/lib/../lib64/libffi.so

Whats the magic trick to get rid of the ../lib64 part?

2 Answers

The following configure command works for me:

configure --prefix=$PREFIX --libdir=$PREFIX/lib --disable-multi-os-directory
Related