diff --git a/rebar.config b/rebar.config index 959af95..33414ff 100644 --- a/rebar.config +++ b/rebar.config @@ -1,12 +1,15 @@ {require_min_otp_vsn, "R15"}. {port_env, [ - %% Default darwin ldflags causes loading of system sqlite. Removed -bundle flag. - {"darwin", "DRV_LDFLAGS", + %% Default darwin ldflags causes loading of system sqlite. Removed -bundle flag. + {"darwin", "DRV_LDFLAGS", "-flat_namespace -undefined suppress $ERL_LDFLAGS"}, {"solaris", "CFLAGS", "-std=c99"}, + {"linux", "CFLAGS", + "-std=c11"}, + {"CFLAGS", "$CFLAGS -DSQLITE_THREADSAFE=1 -DSQLITE_USE_URI -DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS"} ]}. {port_specs, [