Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 1 | Upstream-Status: Pending |
| 2 | |
| 3 | Subject: lua: fix to build test libs correctly |
| 4 | |
| 5 | This patch fixes errors like below. |
| 6 | |
| 7 | | gcc: error: lib21.c: No such file or directory |
| 8 | | gcc: fatal error: no input files |
| 9 | |
| 10 | |
| 11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 12 | --- |
| 13 | lua/tests/libs/Makefile.am | 8 ++++---- |
| 14 | 1 file changed, 4 insertions(+), 4 deletions(-) |
| 15 | |
| 16 | diff --git a/lua/tests/libs/Makefile.am b/lua/tests/libs/Makefile.am |
| 17 | index 19d1a0b..1e5de72 100644 |
| 18 | --- a/lua/tests/libs/Makefile.am |
| 19 | +++ b/lua/tests/libs/Makefile.am |
| 20 | @@ -28,16 +28,16 @@ clean: |
| 21 | rm -f lib1.so lib11.so lib2.so lib21.so lib2-v2.so |
| 22 | |
| 23 | lib1.so: lib1.c |
| 24 | - $(CC) $(CFLAGS) -o lib1.so lib1.c |
| 25 | + $(CC) $(CFLAGS) -o lib1.so $(top_srcdir)/lua/tests/libs/lib1.c |
| 26 | |
| 27 | lib11.so: lib11.c |
| 28 | - $(CC) $(CFLAGS) -o lib11.so lib11.c |
| 29 | + $(CC) $(CFLAGS) -o lib11.so $(top_srcdir)/lua/tests/libs/lib11.c |
| 30 | |
| 31 | lib2.so: lib2.c |
| 32 | - $(CC) $(CFLAGS) -o lib2.so lib2.c |
| 33 | + $(CC) $(CFLAGS) -o lib2.so $(top_srcdir)/lua/tests/libs/lib2.c |
| 34 | |
| 35 | lib21.so: lib21.c |
| 36 | - $(CC) $(CFLAGS) -o lib21.so lib21.c |
| 37 | + $(CC) $(CFLAGS) -o lib21.so $(top_srcdir)/lua/tests/libs/lib21.c |
| 38 | |
| 39 | lib2-v2.so: lib2.so |
| 40 | mv lib2.so ./lib2-v2.so |
| 41 | -- |
| 42 | 1.9.1 |
| 43 | |