Fix Makefile so that it builds safestringlib correctly on OSX

pull/3541/head
Jelte Fennema 2020-02-26 17:41:14 +01:00
parent 8e7eaaf949
commit eb8e099f09
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@ SQL_BUILDDIR=build/sql
$(safestringlib_a): $(safestringlib_sources)
rm -rf $(safestringlib_builddir)
mkdir -p $(safestringlib_builddir)
cd $(safestringlib_builddir) && cmake $(safestringlib_srcdir) && make -j5
@# exports of LDFLAGS and CPPFLAGS are to make sure the ones from this
@# Makefile are not used
+cd $(safestringlib_builddir) && \
export LDFLAGS='' && export CPPFLAGS='' && \
cmake $(safestringlib_srcdir) && make
citus.so: $(safestringlib_a)