dev-util/ltrace:use $CC in tests instead of gcc

Package-Manager: Portage-2.3.101, Repoman-2.3.22
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
This commit is contained in:
Sergei Trofimovich
2020-06-21 19:08:05 +01:00
parent 705d31b2d3
commit d15a204b61
2 changed files with 13 additions and 0 deletions
@@ -0,0 +1,12 @@
Use $CC instead of gcc in testsuite.
--- a/testsuite/Makefile.am
+++ b/testsuite/Makefile.am
@@ -39,6 +39,8 @@ env.exp: Makefile
rm -f env.exp
echo set libelf_LD_LIBRARY_PATH '"$(libelf_LD_LIBRARY_PATH)"' >> $@
echo set libunwind_LD_LIBRARY_PATH '"$(libunwind_LD_LIBRARY_PATH)"' >> $@
+ echo set CC_FOR_TARGET '"$(CC)"' >> $@
+ echo set CXX_FOR_TARGET '"$(CXX)"' >> $@
CLEANFILES = *.o *.so *.log *.sum *.ltrace site.bak setval.tmp site.exp env.exp
@@ -45,6 +45,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-0.7.3-no-error.h-2.patch #713428
"${FILESDIR}"/${PN}-0.7.3-no-REG_NOERROR.patch #713428
"${FILESDIR}"/${PN}-0.7.3-pid_t.patch #713428
"${FILESDIR}"/${PN}-0.7.3-tuple-tests.patch
)
src_prepare() {