mirror of
https://github.com/pygos/build.git
synced 2024-11-16 00:17:11 +01:00
2fb62ec2f1
We tell the autoconf configure script that we are going to install stuff to prefix "/" with libdir being set to "/lib", so the script ends up writing "libdir='/lib'" to the libtool *.la scripts. This is all fine and dandy until we do a 'make install' with DESTDIR set to our actual package deploy directory. Libtool goes "OMG WTF we aren't instaling to / afterall" and thinks it needs to do a relinking phase. During relinking, it passes "-L$libdir" to gcc, which ends up as "-L/lib". Now, gcc tries to link against local system libraries. Best case, the build breaks and we know something stupid happened. It really bites us if we try to cross compile from e.g. x86 to x86. Until now, it worked to simply patch the *.la scripts before 'make install', like other distros do, but recent versions of util-linux now ship with a newer version of the libtool script which simply regenerates the *.la files. This commit adds an extension to the patch script that patches the actuall libtool script itself. Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at> |
||
---|---|---|
.. | ||
autotools.sh | ||
config.guess | ||
depends.sh | ||
download.sh | ||
misc.sh | ||
override.sh | ||
pkgcmd.sh | ||
toolchain.sh | ||
version.sh |