From 2a1a8c90def79c91d44bfa7564e03fdbbb573e65 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Fri, 10 Jan 2020 08:18:18 -0500 Subject: [PATCH] Compile dependencies with -fPIC so we can statically link them in a shared library. --- dep.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dep.mk b/dep.mk index bad90ec7..306d51ea 100644 --- a/dep.mk +++ b/dep.mk @@ -6,6 +6,9 @@ $(shell mkdir -p $(DEP_LOCAL)) DEP_PATH := $(abspath $(DEP_LOCAL)) DEP_FLAGS += -g -O3 -march=nocona +# This is needed for Rack for DAWs. +# Static libs don't usually compiled with -fPIC, but since we're including them in a shared library, it's needed. +DEP_FLAGS += -fPIC ifeq ($(ARCH), mac) DEP_MAC_SDK_FLAGS := -mmacosx-version-min=10.7