Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | [PATCH] using the dynamic library |
| 2 | |
| 3 | Upstream-Status: Inappropriate [configuration] |
| 4 | |
| 5 | building statically-linked sqlite3 failed since sqlite3.o is generated in |
| 6 | different dir, even if link successes, the size of sqlite3 is become larger, |
| 7 | so use the dynamic link, ref: http://patchwork.openembedded.org/patch/93293/ |
| 8 | |
| 9 | Signed-off-by: Roy Li <rongqing.li@windriver.com> |
| 10 | --- |
| 11 | Makefile.am | 3 ++- |
| 12 | 1 file changed, 2 insertions(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/Makefile.am b/Makefile.am |
| 15 | index 88bc23d..fe50f20 100644 |
| 16 | --- a/Makefile.am |
| 17 | +++ b/Makefile.am |
| 18 | @@ -7,7 +7,8 @@ libsqlite3_la_LDFLAGS = -no-undefined -version-info 8:6:8 |
| 19 | |
| 20 | bin_PROGRAMS = sqlite3 |
| 21 | sqlite3_SOURCES = shell.c sqlite3.h |
| 22 | -sqlite3_LDADD = sqlite3.$(OBJEXT) @READLINE_LIBS@ |
| 23 | +sqlite3_LDADD = @READLINE_LIBS@ libsqlite3.la |
| 24 | + |
| 25 | |
| 26 | include_HEADERS = sqlite3.h sqlite3ext.h |
| 27 | |
| 28 | -- |
| 29 | 1.9.1 |
| 30 | |