mirror of
https://github.com/dashpay/dash.git
synced 2024-12-27 21:12:48 +01:00
9d25362087
- create a script to handle split debug. This will also eventually need to check targets, and use dsymutil for osx. - update config.guess/config.sub for bdb for aarch64. - temporarily disable symbol checks for arm/aarch64 - quit renaming to linux32/linux64 and use the host directly This also adds a hack to work around an Ubuntu bug in the gcc-multilib package: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults-armhf-cross/+bug/1347820 The problem is that gcc-multilib conflicts with the aarch toolchain. gcc-multilib installs a symlink that points /usr/include/asm -> /usr/include/x86_64-linux-gnu/asm. Without this link, gcc -m32 can't find asm/errno.h (and others), since /usr/include/x86_64-linux-gnu isn't in its default include path. But /usr/include/i386-linux-gnu is (though it doesn't exist on disk). So work around the problem by linking /usr/include/i386-linux-gnu/asm -> /usr/include/x86_64-linux-gnu/asm. The symlink fix is actually quite reasonable, but echoing the password into sudo is nasty, and should probably be addressed in gitian itself. It makes more sense to enable passwordless sudo for the build user by default.
11 lines
353 B
Bash
11 lines
353 B
Bash
#!/bin/sh
|
|
|
|
if [ $# -ne 3 ];
|
|
then echo "usage: $0 <input> <stripped-binary> <debug-binary>"
|
|
fi
|
|
|
|
@OBJCOPY@ --enable-deterministic-archives -p --only-keep-debug $1 $3
|
|
@OBJCOPY@ --enable-deterministic-archives -p --strip-debug $1 $2
|
|
@STRIP@ --enable-deterministic-archives -p -s $2
|
|
@OBJCOPY@ --enable-deterministic-archives -p --add-gnu-debuglink=$3 $2
|