Skip to content

Commit e3699b5

Browse files
committed
Don't statically link libstdc++ into plugins. Make plugins dynamically link to Rack's libstdc++.
1 parent 75666e2 commit e3699b5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

plugin.mk

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ifdef ARCH_LIN
3232
# When Rack loads a plugin, it symlinks /tmp/Rack2 to its system dir, so the plugin can link to libRack.
3333
LDFLAGS += -Wl,-rpath=/tmp/Rack2
3434
# Since the plugin's compiler could be a different version than Rack's compiler, link libstdc++ and libgcc statically to avoid ABI issues.
35-
LDFLAGS += -static-libstdc++ -static-libgcc
35+
LDFLAGS += -static-libgcc
3636
XDG_DATA_HOME ?= $(HOME)/.local/share
3737
RACK_USER_DIR ?= $(XDG_DATA_HOME)/Rack2
3838
endif
@@ -46,7 +46,6 @@ endif
4646

4747
ifdef ARCH_WIN
4848
TARGET := $(TARGET).dll
49-
LDFLAGS += -static-libstdc++
5049
RACK_USER_DIR ?= $(LOCALAPPDATA)/Rack2
5150
endif
5251

0 commit comments

Comments
 (0)