Use -lsqlite3 for compiling tests when SQLITE3_FROM_OS ENGINE-229
authorDamiano Boppart <damiano@pep-security.net>
Sun, 27 Aug 2017 14:33:36 +0000
branchENGINE-229
changeset 20026b465132be58
parent 1997 2c10033e2ade
child 2003 9af7ecb78779
Use -lsqlite3 for compiling tests when SQLITE3_FROM_OS
src/Makefile
test/Makefile
     1.1 --- a/src/Makefile	Thu Aug 24 15:05:08 2017 +0200
     1.2 +++ b/src/Makefile	Sun Aug 27 14:33:36 2017 +0000
     1.3 @@ -14,6 +14,7 @@
     1.4      ifeq ($(BUILD_FOR),Darwin)
     1.5          CFLAGS+= -DSQLITE_THREADSAFE=1
     1.6          #LDFLAGS+= -L/opt/local/lib
     1.7 +        # FIXME Probably -lsqlite3 should not be here, if SQLITE3_FROM_OS is empty
     1.8          LDLIBS+= -lsqlite3 -lz -liconv
     1.9      else
    1.10          $(error I don't know how to make for $(BUILD_FOR) on $(BUILD_ON))
     2.1 --- a/test/Makefile	Thu Aug 24 15:05:08 2017 +0200
     2.2 +++ b/test/Makefile	Sun Aug 27 14:33:36 2017 +0000
     2.3 @@ -24,6 +24,10 @@
     2.4      LDLIBS+= -lnetpgp
     2.5  endif
     2.6  
     2.7 +ifdef SQLITE3_FROM_OS
     2.8 +    LDLIBS+= -lsqlite3
     2.9 +endif
    2.10 +
    2.11  ifeq ($(shell uname),Darwin)
    2.12      LIBPATH=DYLD_LIBRARY_PATH
    2.13      LLDB_BIN=/Applications/Xcode.app/Contents/Developer/usr/bin/lldb