Experiments with static builds

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2022-01-12 15:39:09 +00:00
parent bd05259d31
commit 5e5a53ab2b
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
5 changed files with 34 additions and 9 deletions

View file

@ -16,6 +16,8 @@ SYSDEPS ?= false
# --------------------------------------------------------------
# Carla stuff
ifneq ($(STATIC_BUILD),true)
ifneq ($(DEBUG),true)
EXTERNAL_PLUGINS = true
endif
@ -70,6 +72,8 @@ ifeq ($(WINDOWS),true)
STATIC_CARLA_PLUGIN_LIBS += -ldsound -lwinmm
endif
endif # STATIC_BUILD
# --------------------------------------------------------------
# Import base definitions
@ -187,8 +191,10 @@ BASE_FLAGS += -Wno-unused-variable
LINK_FLAGS += -pthread
ifneq ($(HAIKU_OR_MACOS_OR_WINDOWS),true)
ifneq ($(STATIC_BUILD),true)
LINK_FLAGS += -ldl
endif
endif
ifeq ($(MACOS),true)
LINK_FLAGS += -framework IOKit