Browse Source

Compile dependencies with -fPIC so we can statically link them in a shared library.

tags/v2.0.0
Andrew Belt 4 years ago
parent
commit
2a1a8c90de
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      dep.mk

+ 3
- 0
dep.mk View File

@@ -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


Loading…
Cancel
Save