From e7146fa84c4bf80cdc88e6848e8c218cdce64aed Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 1 Nov 2023 09:17:49 +0000 Subject: [PATCH] fixup 4 --- _build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_build.sh b/_build.sh index 0476bd160..1affb1c1f 100755 --- a/_build.sh +++ b/_build.sh @@ -1247,7 +1247,11 @@ build_single_target() { ccrtlib="$(basename "${ccrtlib}" | cut -c 4-)" # delete 'lib' prefix ccrtlib="-l${ccrtlib%.*}" # clang_rt.builtins-aarch64 or gcc libprefix="/usr/${_TRIPLETSH}/lib" + find "${libprefix}" + echo '---------------' + ls -lA /usr _LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -nodefaultlibs -L${libprefix} -L${ccrtdir}" +# _LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -nodefaultlibs -nostartfiles -L${libprefix} ${libprefix}/Scrt1.o ${libprefix}/crti.o -L${ccrtdir} ${libprefix}/crtn.o" _LIBS_GLOBAL="${_LIBS_GLOBAL} -lc ${ccrtlib}" fi _LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -rtlib=compiler-rt"