BinaryBuilder.jl icon indicating copy to clipboard operation
BinaryBuilder.jl copied to clipboard

Wrong libtool files in `/opt/${target}/${target}/lib*`

Open giordano opened this issue 4 years ago • 2 comments

Some of the libtool files in /opt/${target}/${target}/lib* contain wrong paths. For example, for x86_64-linux-gnu, /opt/x86_64-linux-gnu/x86_64-linux-gnu/lib64/libquadmath.la has the following libdir:

# Directory that this library needs to be installed in:
libdir='/workspace/destdir/x86_64-linux-gnu/lib/../lib64'

I assume this is the correct path when the file is generated and installed in ${prefix}, but then in the RootFS this is placed in /opt/${target} instead of /workspace/destdir.

Since these files often cause troubles during build, we should either remove or fix them

giordano avatar Feb 24 '20 02:02 giordano

IMO we should just try always removing all .la files. I'd rather not rely on libtool files.

staticfloat avatar Feb 25 '20 01:02 staticfloat

Since this BBB PR we are in fact removing all *.la files in any newly built JLL, but old existing JLLs will still have them.

fingolfin avatar Dec 31 '21 23:12 fingolfin