diff options
author | Yasuhiro Kimura <yasu@utahime.org> | 2021-06-01 22:18:54 -0400 |
---|---|---|
committer | Guangyuan Yang <ygy@FreeBSD.org> | 2021-06-01 22:18:54 -0400 |
commit | 585e00a411c08024816bcf8e787014cdd5aa10b7 (patch) | |
tree | bb27f73a8569f9c6d106d297839cd980223e572a /databases/emacsql/files/patch-sqlite_Makefile | |
parent | www/civetweb: New port: Embedded C/C++ web server (diff) |
databases/emacsql: New port: High-level Emacs Lisp RDBMS front-end
PR: 255958
Approved by: lwhsu (mentor)
Diffstat (limited to 'databases/emacsql/files/patch-sqlite_Makefile')
-rw-r--r-- | databases/emacsql/files/patch-sqlite_Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/databases/emacsql/files/patch-sqlite_Makefile b/databases/emacsql/files/patch-sqlite_Makefile new file mode 100644 index 000000000000..463df817ee70 --- /dev/null +++ b/databases/emacsql/files/patch-sqlite_Makefile @@ -0,0 +1,22 @@ +--- sqlite/Makefile.orig 2020-07-14 00:28:59 UTC ++++ sqlite/Makefile +@@ -1,6 +1,6 @@ + .POSIX: +-LDLIBS = -ldl -lm +-CFLAGS = -O2 -Wall -Wextra \ ++LDLIBS = -lsqlite3 ++CFLAGS += \ + -DSQLITE_THREADSAFE=0 \ + -DSQLITE_DEFAULT_FOREIGN_KEYS=1 \ + -DSQLITE_ENABLE_FTS5 \ +@@ -10,8 +10,8 @@ CFLAGS = -O2 -Wall -Wextra \ + -DSQLITE_ENABLE_JSON1 \ + -DSQLITE_SOUNDEX + +-emacsql-sqlite: emacsql.c sqlite3.c +- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ emacsql.c sqlite3.c $(LDLIBS) ++emacsql-sqlite: emacsql.c ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ emacsql.c $(LDLIBS) + + clean: + rm -f emacsql-sqlite |