newlib_tests: Fix build dependency on lib
PATCH 1/1 newlib_tests: Fix build dependency on lib
this fixes build error:
$ cd lib && make clean && cd newlib_tests && make ld: cannot find -lltp
Fixes bbdb9f783 ("lib: Add new test library API")
Signed-off-by Petr Vorel <[email protected]>
--- lib/newlib_tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
lib/newlib_tests/Makefile +1 -1
@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later top_srcdir ?= ../.. -include $(top_srcdir)/include/mk/env_pre.mk +include $(top_srcdir)/include/mk/testcases.mk CFLAGS += -W -Wall LDLIBS += -lltp
Signature · 1 line
2.31.1
PATCH 1/1 newlib_tests: Fix build dependency on lib
Hi!
Quoted 17 lines
this fixes build error:
$ cd lib && make clean && cd newlib_tests && make ld: cannot find -lltpFixes bbdb9f783 ("lib: Add new test library API")Signed-off-by Petr Vorel <[email protected]>--- lib/newlib_tests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)lib/newlib_tests/Makefile +0
-0
lib/newlib_tests/Makefile line 4
Quoted 5 lines
lib/newlib_tests/Makefile +1
-1@@ -1,7 +1,7 @@ # SPDX-License-Identifier: GPL-2.0-or-later top_srcdir ?= ../.. -include $(top_srcdir)/include/mk/env_pre.mk +include $(top_srcdir)/include/mk/testcases.mk
Ah right, this adds dependency on the library and builds it if needed.
Reviewed-by Cyril Hrubis <[email protected]>
Btw the lib/tests/ subdirectory has the same problem, but I'm not sure if we care enough to fix that...
Signature · 2 lines
Cyril Hrubis [email protected]
PATCH 1/1 newlib_tests: Fix build dependency on lib
Hi Cyril,
...
Quoted 9 lines
lib/newlib_tests/Makefile line 4
Quoted 2 lines
lib/newlib_tests/Makefile +1
-1-include $(top_srcdir)/include/mk/env_pre.mk +include $(top_srcdir)/include/mk/testcases.mkAh right, this adds dependency on the library and builds it if needed.
Reviewed-by Cyril Hrubis <[email protected]>Btw the
lib/tests/subdirectory has the same problem, but I'm not sure if we care enough to fix that...
Good catch, I fixed it here and merged.
Kind regards,
Petr