From ee4d30b8db08b72c5e441c769ae592bbb27e5a3b Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Thu, 8 Oct 2020 21:11:13 -0400 Subject: [PATCH] Add -static-libstdc++ to LDFLAGS for plugin build. --- Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c60ecfc..b569f15 100644 --- a/Makefile +++ b/Makefile @@ -103,6 +103,11 @@ plugin-build-linux: export STRIP := x86_64-ubuntu16.04-linux-gnu-strip plugin-build-mac plugin-build-windows plugin-build-linux: export RACK_DIR := $(RACK_DIR) +# Since the compiler we're using could have a newer version than the minimum supported libstdc++ version, link it statically. +# Rack v2 includes this flag in plugin.mk, so remove it after it releases. +plugin-build-mac plugin-build-windows plugin-build-linux: export LDFLAGS := -static-libstdc++ + + plugin-build-mac plugin-build-windows plugin-build-linux: cd $(PLUGIN_DIR) && $(MAKE) clean cd $(PLUGIN_DIR) && $(MAKE) cleandep @@ -113,7 +118,10 @@ plugin-build-mac plugin-build-windows plugin-build-linux: cd $(PLUGIN_DIR) && $(MAKE) clean -plugin-build: plugin-build-mac plugin-build-windows plugin-build-linux +plugin-build: + $(MAKE) plugin-build-mac + $(MAKE) plugin-build-windows + $(MAKE) plugin-build-linux plugin-build-clean: