All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] newlib_tests: Fix build dependency on lib
@ 2021-06-10 12:52 Petr Vorel
  2021-06-10 13:03 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2021-06-10 12:52 UTC (permalink / raw)
  To: ltp

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 <pvorel@suse.cz>
---
 lib/newlib_tests/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/newlib_tests/Makefile b/lib/newlib_tests/Makefile
index 30ca6810c..a263d7db5 100644
--- a/lib/newlib_tests/Makefile
+++ b/lib/newlib_tests/Makefile
@@ -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
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [LTP] [PATCH 1/1] newlib_tests: Fix build dependency on lib
  2021-06-10 12:52 [LTP] [PATCH 1/1] newlib_tests: Fix build dependency on lib Petr Vorel
@ 2021-06-10 13:03 ` Cyril Hrubis
  2021-06-10 14:08   ` Petr Vorel
  0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2021-06-10 13:03 UTC (permalink / raw)
  To: ltp

Hi!
> 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 <pvorel@suse.cz>
> ---
>  lib/newlib_tests/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/newlib_tests/Makefile b/lib/newlib_tests/Makefile
> index 30ca6810c..a263d7db5 100644
> --- a/lib/newlib_tests/Makefile
> +++ b/lib/newlib_tests/Makefile
> @@ -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 <chrubis@suse.cz>

Btw the lib/tests/ subdirectory has the same problem, but I'm not sure
if we care enough to fix that...

-- 
Cyril Hrubis
chrubis@suse.cz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [LTP] [PATCH 1/1] newlib_tests: Fix build dependency on lib
  2021-06-10 13:03 ` Cyril Hrubis
@ 2021-06-10 14:08   ` Petr Vorel
  0 siblings, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2021-06-10 14:08 UTC (permalink / raw)
  To: ltp

Hi Cyril,

...
> > -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 <chrubis@suse.cz>

> 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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-10 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 12:52 [LTP] [PATCH 1/1] newlib_tests: Fix build dependency on lib Petr Vorel
2021-06-10 13:03 ` Cyril Hrubis
2021-06-10 14:08   ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.