diff --git a/newlib/configure b/newlib/configure index 9bbb089a9..31b790f2a 100755 --- a/newlib/configure +++ b/newlib/configure @@ -12442,7 +12442,7 @@ CRT0= CRT0_DIR= if test "x${have_crt0}" = "xyes"; then CRT0=crt0.o - CRT0_DIR=libc/ + CRT0_DIR=libc/sys/${sys_dir}/ fi if test x$have_crt0 = xyes; then HAVE_CRT0_TRUE= diff --git a/newlib/configure.ac b/newlib/configure.ac index 13f318922..cac2d7296 100644 --- a/newlib/configure.ac +++ b/newlib/configure.ac @@ -361,7 +361,7 @@ CRT0= CRT0_DIR= if test "x${have_crt0}" = "xyes"; then CRT0=crt0.o - CRT0_DIR=libc/ + CRT0_DIR=libc/sys/${sys_dir}/ fi AM_CONDITIONAL(HAVE_CRT0, test x$have_crt0 = xyes) AC_SUBST(CRT0)