+2021-01-31 Sergei Trofimovich <slyfox@gentoo.org>
+
+ * Makefile.am (TESTS_ENVIRONMENT): export CC variable
+ to tests for use instead of 'gcc'.
+ * run-disasm-x86-64.sh: use ${CC} instead of 'gcc'.
+ * run-disasm-x86.sh: Likewise.
+ * run-strip-g.sh: Likewise.
+ * run-strip-nothing.sh: Likewise.
+ * run-test-includes.sh: Likewise.
+
2021-01-06 Timm Bäder <tbaeder@redhat.com>
* zstrptr.c (main): Lift print_strings function up to ...
export libdir; export bindir; \
export LC_ALL; export LANG; export VALGRIND_CMD; \
unset DEBUGINFOD_URLS; \
- NM=$(NM); export NM;
+ NM=$(NM); export NM; \
+ CC=$(CC); export CC;
installed_LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
installed $(tests_rpath) \
'$(program_transform_name)'
export abs_top_builddir; \
export LC_ALL; export LANG; export VALGRIND_CMD; \
unset DEBUGINFOD_URLS; \
- NM=$(NM); export NM;
+ NM=$(NM); export NM; \
+ CC=$(CC); export CC;
LOG_COMPILER = $(abs_srcdir)/test-wrapper.sh \
$(abs_top_builddir)/libdw:$(abs_top_builddir)/backends:$(abs_top_builddir)/libelf:$(abs_top_builddir)/libasm:$(abs_top_builddir)/debuginfod
x86_64)
tempfiles testfile45.o
testfiles testfile45.S testfile45.expect
- gcc -m64 -c -o testfile45.o testfile45.S
+ ${CC} -m64 -c -o testfile45.o testfile45.S
testrun_compare ${abs_top_builddir}/src/objdump -d testfile45.o < testfile45.expect
;;
esac
x86_64 | i?86 )
tempfiles testfile44.o
testfiles testfile44.S testfile44.expect
- gcc -m32 -c -o testfile44.o testfile44.S
+ ${CC} -m32 -c -o testfile44.o testfile44.S
testrun_compare ${abs_top_builddir}/src/objdump -d testfile44.o < testfile44.expect
;;
esac
tempfiles a.out strip.out debug.out readelf.out
echo Create debug a.out.
-echo "int main() { return 1; }" | gcc -g -xc -
+echo "int main() { return 1; }" | ${CC} -g -xc -
echo strip -g to file with debug file
testrun ${abs_top_builddir}/src/strip -g -o strip.out -f debug.out ||
tempfiles a.out strip.out debug.out
# Create no-debug a.out.
-echo "int main() { return 1; }" | gcc -s -xc -
+echo "int main() { return 1; }" | ${CC} -s -xc -
# strip to file
testrun ${abs_top_builddir}/src/strip -g -o strip.out ||
. $srcdir/test-subr.sh
echo '#include "libelf.h"' \
- | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf -xc -
+ | ${CC} -c -o /dev/null -I ${abs_srcdir}/../libelf -xc -
echo '#include "gelf.h"' \
- | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf -xc -
+ | ${CC} -c -o /dev/null -I ${abs_srcdir}/../libelf -xc -
echo '#include "dwarf.h"' \
- | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
+ | ${CC} -c -o /dev/null -I ${abs_srcdir}/../libelf \
-I ${abs_srcdir}/../libdw -xc -
echo '#include "libdw.h"' \
- | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
+ | ${CC} -c -o /dev/null -I ${abs_srcdir}/../libelf \
-I ${abs_srcdir}/../libdw -xc -
echo '#include "libdwfl.h"' \
- | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
+ | ${CC} -c -o /dev/null -I ${abs_srcdir}/../libelf \
-I ${abs_srcdir}/../libdw -I ${abs_srcdir}/../libdwfl -xc -
echo '#include "libdwelf.h"' \
- | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
+ | ${CC} -c -o /dev/null -I ${abs_srcdir}/../libelf \
-I ${abs_srcdir}/../libdw -I ${abs_srcdir}/../libdwelf -xc -
echo '#include "libasm.h"' \
- | gcc -c -o /dev/null -I ${abs_srcdir}/../libelf \
+ | ${CC} -c -o /dev/null -I ${abs_srcdir}/../libelf \
-I ${abs_srcdir}/../libasm -xc -