diff --git a/programs/use_newlib.lua b/programs/use_newlib.lua index 2728a4193f..b48b7fcaab 100644 --- a/programs/use_newlib.lua +++ b/programs/use_newlib.lua @@ -11,6 +11,6 @@ if TOOLCHAIN_LIBPATH == "" then end INCLUDES = INCLUDES .. " -I" .. NEWLIB_BASE .. "/libc/include" -LDFLAGS = LDFLAGS .. " -T$(NEWLIB_BASE)/app.lds -L$(NEWLIB_LIB) -L$(TOOLCHAIN_LIBPATH) --image-base 0" -tup.append_table(LIBDEPS, {NEWLIB_LIB .. "/", NEWLIB_LIB .. "/"}) -LIBS = LIBS .. "-lgcc -lapp -lc.dll" +LDFLAGS = LDFLAGS .. " -T$(NEWLIB_BASE)/app-dynamic.lds -L$(NEWLIB_LIB) --image-base 0" +tup.append_table(LIBDEPS, {NEWLIB_LIB .. "/"}) +LIBS = LIBS .. "-lgcc -lc.dll"