Fix OS X compilation
This causes the port driver to use the `brew` version of SQLite on OS X (darwin). This version is more up-to-date an includes functionality like loading extensions.
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
% -*- mode: erlang -*-
|
% -*- mode: erlang -*-
|
||||||
{port_env, [{"^(?!.*win32)", "DRV_CFLAGS", "$DRV_CFLAGS -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes"},
|
{port_env, [{"DRV_CFLAGS", "$DRV_CFLAGS -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes"},
|
||||||
{"^(?!.*win32)", "DRV_LDFLAGS", "$DRV_LDFLAGS -lsqlite3"},
|
{"DRV_LDFLAGS", "$DRV_LDFLAGS -lsqlite3"},
|
||||||
|
{"darwin", "DRV_CFLAGS", "$DRV_CFLAGS -Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes"},
|
||||||
|
{"darwin", "DRV_LDFLAGS", "$DRV_LDFLAGS -L$(brew --prefix sqlite)/lib -lsqlite3"},
|
||||||
{".*win32.*", "DRV_CFLAGS", "$DRV_CFLAGS /O2 /Isqlite3_amalgamation /Ic_src /W4 /wd4100 /wd4204 /wd4820 /wd4255 /wd4668 /wd4710 /wd4711"},
|
{".*win32.*", "DRV_CFLAGS", "$DRV_CFLAGS /O2 /Isqlite3_amalgamation /Ic_src /W4 /wd4100 /wd4204 /wd4820 /wd4255 /wd4668 /wd4710 /wd4711"},
|
||||||
{".*win32.*", "DRV_LDFLAGS", "$DRV_LDFLAGS sqlite3.lib"}]}.
|
{".*win32.*", "DRV_LDFLAGS", "$DRV_LDFLAGS sqlite3.lib"}]}.
|
||||||
{cover_enabled, true}.
|
{cover_enabled, true}.
|
||||||
|
|||||||
Reference in New Issue
Block a user