1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00
build/util
David Oberhollenzer 2fb62ec2f1 Update unfuck_libtool function
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>
2019-01-17 19:55:32 +01:00
..
autotools.sh Explicitly turn on size optimizations 2018-11-03 19:28:43 +01:00
config.guess Update config.guess 2018-09-01 21:22:34 +02:00
depends.sh Add automatic update chacking script 2018-05-08 15:01:23 +02:00
download.sh Directly pipe checksum into comparison tool in download function 2018-12-29 13:07:53 +01:00
misc.sh Update unfuck_libtool function 2019-01-17 19:55:32 +01:00
override.sh Fix missing LAYERCONF in check_update script 2018-09-27 23:51:15 +02:00
pkgcmd.sh Remove dev deploy split 2018-06-17 20:22:10 +02:00
toolchain.sh Remove dev deploy split 2018-06-17 20:22:10 +02:00
version.sh Add automatic update chacking script 2018-05-08 15:01:23 +02:00