mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-08 04:15:24 +01:00
Fix libtool archive reproducibility
This makes the order of objects in archives created by libtool consistent. It is known to affect cases where the *_LIBADD automake variable is used to add extra objects from a separate archive. Fixing this allows us to remove a few workarounds.
This commit is contained in:
parent
3ed5daa5aa
commit
24e3fa3601
5 changed files with 144 additions and 27 deletions
|
|
@ -119,16 +119,6 @@ src_compile() {
|
|||
|
||||
make -C build/libstdc++-v3 PATH="${PATH}:${PWD}/build/gcc" \
|
||||
CXXFLAGS="-I${PWD}/build/gcc/include -I ${PREFIX}/include"
|
||||
|
||||
# Fix ordering of libstdc++.a
|
||||
pushd build/libstdc++-v3/src
|
||||
mkdir order-a
|
||||
pushd order-a
|
||||
ar x ../.libs/libstdc++.a
|
||||
rm ../.libs/libstdc++.a
|
||||
ar cru ../.libs/libstdc++.a ./*.o
|
||||
popd
|
||||
popd
|
||||
}
|
||||
|
||||
src_install() {
|
||||
|
|
|
|||
|
|
@ -61,16 +61,4 @@ src_compile() {
|
|||
|
||||
# Now proceed with the build
|
||||
default
|
||||
|
||||
# Ordering of libguile.a is messed up
|
||||
mkdir libguile/.libs/order
|
||||
pushd libguile/.libs/order
|
||||
ar x ../libguile-3.0.a
|
||||
rm ../libguile-3.0.a
|
||||
ar cr ../libguile-3.0.a ./*.o
|
||||
popd
|
||||
|
||||
# Recompile guile with fixed libguile
|
||||
rm libguile/guile
|
||||
make
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue