File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
contrib/gitian-descriptors Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,30 @@ script: |
63
63
chmod +x ${WRAP_DIR}/${i}-${prog}
64
64
done
65
65
done
66
+
67
+ # Create per-host linker wrapper
68
+ # This is only needed for trusty, as the mingw linker leaks a few bytes of
69
+ # heap, causing non-determinism. See discussion in https://github.com/bitcoin/bitcoin/pull/6900
70
+ for i in $HOSTS; do
71
+ mkdir -p ${WRAP_DIR}/${i}
72
+ for prog in collect2; do
73
+ echo '#!/bin/bash' > ${WRAP_DIR}/${i}/${prog}
74
+ REAL=$(${i}-gcc -print-prog-name=${prog})
75
+ echo "export MALLOC_PERTURB_=255" >> ${WRAP_DIR}/${i}/${prog}
76
+ echo "${REAL} \$@" >> $WRAP_DIR/${i}/${prog}
77
+ chmod +x ${WRAP_DIR}/${i}/${prog}
78
+ done
79
+ for prog in gcc g++; do
80
+ echo '#!/bin/bash' > ${WRAP_DIR}/${i}-${prog}
81
+ echo "REAL=\`which -a ${i}-${prog} | grep -v ${WRAP_DIR}/${i}-${prog} | head -1\`" >> ${WRAP_DIR}/${i}-${prog}
82
+ echo 'export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1' >> ${WRAP_DIR}/${i}-${prog}
83
+ echo "export FAKETIME=\"${REFERENCE_DATETIME}\"" >> ${WRAP_DIR}/${i}-${prog}
84
+ echo "export COMPILER_PATH=${WRAP_DIR}/${i}" >> ${WRAP_DIR}/${i}-${prog}
85
+ echo "\$REAL \$@" >> $WRAP_DIR/${i}-${prog}
86
+ chmod +x ${WRAP_DIR}/${i}-${prog}
87
+ done
88
+ done
89
+
66
90
export PATH=${WRAP_DIR}:${PATH}
67
91
68
92
cd bitcoin
You can’t perform that action at this time.
0 commit comments