Browse Source

Don't link libstdc++ statically on Mac because it uses libc++ instead.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
8b215d86fb
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      plugin.mk

+ 3
- 3
plugin.mk View File

@@ -20,9 +20,6 @@ FLAGS += -I$(RACK_DIR)/include -I$(RACK_DIR)/dep/include
LDFLAGS += -shared LDFLAGS += -shared
LDFLAGS += -L$(RACK_DIR) -lRack LDFLAGS += -L$(RACK_DIR) -lRack


# Since the compiler we're using could have a newer version than the minimum supported libstdc++ version, link it statically.
LDFLAGS += -static-libstdc++

include $(RACK_DIR)/arch.mk include $(RACK_DIR)/arch.mk


ifdef ARCH_LIN ifdef ARCH_LIN
@@ -31,6 +28,8 @@ ifdef ARCH_LIN
# I don't really understand the side effects (see GCC manual), but so far tests are positive. # I don't really understand the side effects (see GCC manual), but so far tests are positive.
FLAGS += -fno-gnu-unique FLAGS += -fno-gnu-unique
LDFLAGS += -Wl,-rpath=. LDFLAGS += -Wl,-rpath=.
# Since the compiler we're using could have a newer version than the minimum supported libstdc++ version, link it statically.
LDFLAGS += -static-libstdc++
RACK_USER_DIR ?= $(HOME)/.Rack RACK_USER_DIR ?= $(HOME)/.Rack
endif endif


@@ -42,6 +41,7 @@ endif


ifdef ARCH_WIN ifdef ARCH_WIN
TARGET := plugin.dll TARGET := plugin.dll
LDFLAGS += -static-libstdc++
RACK_USER_DIR ?= "$(USERPROFILE)"/Documents/Rack RACK_USER_DIR ?= "$(USERPROFILE)"/Documents/Rack
endif endif




Loading…
Cancel
Save