Merge pull request #58 from ConnorRigby/esqlite-use-system-fix
Fix ESQLITE_USE_SYSTEM
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "sqlite3.h"
|
#include <sqlite3.h>
|
||||||
#include "queue.h"
|
#include "queue.h"
|
||||||
|
|
||||||
#define MAX_ATOM_LENGTH 255 /* from atom.h, not exposed in erlang include */
|
#define MAX_ATOM_LENGTH 255 /* from atom.h, not exposed in erlang include */
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ DrvLdFlags =
|
|||||||
|
|
||||||
{NifSources, LdEnv, CFlagsExt} =
|
{NifSources, LdEnv, CFlagsExt} =
|
||||||
case os:getenv("ESQLITE_USE_SYSTEM") of
|
case os:getenv("ESQLITE_USE_SYSTEM") of
|
||||||
NotDefined when NotDefined == false; NotDefined == [] -> {NifStaticSources, [], []};
|
NotDefined when NotDefined == false; NotDefined == [] -> {NifStaticSources, [], " -Ic_src/sqlite3"};
|
||||||
_Defined -> {NifSharedSources, [{"DRV_LDFLAGS", DrvLdFlags}], " -Ic_src/sqlite3"}
|
_Defined -> {NifSharedSources, [{"DRV_LDFLAGS", DrvLdFlags}], []}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
CFlags =
|
CFlags =
|
||||||
|
|||||||
Reference in New Issue
Block a user