diff --git a/deps/quickjs/Makefile b/deps/quickjs/Makefile index cf88a72..2643deb 100644 --- a/deps/quickjs/Makefile +++ b/deps/quickjs/Makefile @@ -56,6 +56,11 @@ CONFIG_BIGNUM=y OBJDIR=.obj +# force -fPIC for compilation, and hide QuickJS's symbols: the postgres +# binary exports some of the same names (unicode_normalize), and would +# otherwise take QuickJS's calls to them +CFLAGS += -fPIC -fvisibility=hidden + ifdef CONFIG_ASAN OBJDIR:=$(OBJDIR)/asan endif