From c1a0d60574539cda1f3310826945485f1d202d9c Mon Sep 17 00:00:00 2001 From: Connor Rigby Date: Tue, 11 Dec 2018 08:41:45 -0800 Subject: [PATCH] Fix compile for debian/gcc 4.9 Fixes #50 --- rebar.config | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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, [