From f368b2b87790a9259fa62fc7fa549daf3eb27ba5 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Fri, 26 Sep 2025 12:03:14 +0200 Subject: [PATCH 1/4] fix copyright headers --- templates/android-make/vars.mk | 2 +- templates/ios/tibia-index.js | 2 +- templates/vst3/tibia-index.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/android-make/vars.mk b/templates/android-make/vars.mk index 223393d..e27220a 100644 --- a/templates/android-make/vars.mk +++ b/templates/android-make/vars.mk @@ -1,7 +1,7 @@ # # Tibia # -# Copyright (C) 2024 Orastron Srl unipersonale +# Copyright (C) 2024, 2025 Orastron Srl unipersonale # # Tibia is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/templates/ios/tibia-index.js b/templates/ios/tibia-index.js index 8280ce6..39de07c 100644 --- a/templates/ios/tibia-index.js +++ b/templates/ios/tibia-index.js @@ -1,7 +1,7 @@ /* * Tibia * - * Copyright (C) 2024 Orastron Srl unipersonale + * Copyright (C) 2024, 2025 Orastron Srl unipersonale * * Tibia is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/templates/vst3/tibia-index.js b/templates/vst3/tibia-index.js index 5d21e6e..f59ee2c 100644 --- a/templates/vst3/tibia-index.js +++ b/templates/vst3/tibia-index.js @@ -1,7 +1,7 @@ /* * Tibia * - * Copyright (C) 2023, 2024 Orastron Srl unipersonale + * Copyright (C) 2023-2025 Orastron Srl unipersonale * * Tibia is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by From e759d61f790e4d1ab278872560dfeef95ce06179 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Fri, 26 Sep 2025 15:25:56 +0200 Subject: [PATCH 2/4] static libstdc++ linking --- templates/cmd-make/Makefile | 2 +- templates/lv2-make/Makefile | 2 +- templates/vst3-make/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/cmd-make/Makefile b/templates/cmd-make/Makefile index bb4d9d3..5aa15a6 100644 --- a/templates/cmd-make/Makefile +++ b/templates/cmd-make/Makefile @@ -54,7 +54,7 @@ CFLAGS := -O3 -Wall -Wpedantic -Wextra CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -I$(TINYWAV_DIR) -I$(MIDI_PARSER_DIR)/include -fvisibility=hidden $(CFLAGS_EXTRA) $(CFLAGS) LDFLAGS := -LDFLAGS_ALL := $(LDFLAGS_EXTRA) $(LDFLAGS) +LDFLAGS_ALL := -static-libstdc++ -Wl,--as-needed $(LDFLAGS_EXTRA) $(LDFLAGS) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -I$(TINYWAV_DIR) -I$(MIDI_PARSER_DIR)/include $(CXXFLAGS_EXTRA) $(CXXFLAGS) diff --git a/templates/lv2-make/Makefile b/templates/lv2-make/Makefile index e391677..5ba4b89 100644 --- a/templates/lv2-make/Makefile +++ b/templates/lv2-make/Makefile @@ -68,7 +68,7 @@ CFLAGS := -O3 -Wall -Wpedantic -Wextra CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) $(shell pkg-config --cflags lv2) -fPIC -fvisibility=hidden $(CFLAGS_EXTRA) $(CFLAGS) LDFLAGS := -LDFLAGS_ALL := -shared $(shell pkg-config --libs lv2) $(LDFLAGS_EXTRA) $(LDFLAGS) +LDFLAGS_ALL := -shared -static-libstdc++ -Wl,--as-needed $(shell pkg-config --libs lv2) $(LDFLAGS_EXTRA) $(LDFLAGS) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) $(shell pkg-config --cflags lv2) -fPIC -fvisibility=hidden $(CXXFLAGS_EXTRA) $(CXXFLAGS) diff --git a/templates/vst3-make/Makefile b/templates/vst3-make/Makefile index 9a96121..12c9e9b 100644 --- a/templates/vst3-make/Makefile +++ b/templates/vst3-make/Makefile @@ -72,7 +72,7 @@ CFLAGS := -O3 -Wall -Wpedantic -Wextra CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -fPIC -fvisibility=hidden $(CFLAGS_EXTRA) $(CFLAGS) LDFLAGS := -LDFLAGS_ALL := -shared -lm $(LDFLAGS_EXTRA) $(LDFLAGS) +LDFLAGS_ALL := -shared -lm -static-libstdc++ -Wl,--as-needed $(LDFLAGS_EXTRA) $(LDFLAGS) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -fPIC $(CXXFLAGS_EXTRA) $(CXXFLAGS) From de54fe87d1ff3fd5de6da2f1c112764f3523727b Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Fri, 26 Sep 2025 15:46:21 +0200 Subject: [PATCH 3/4] static --- templates/cmd-make/Makefile | 2 +- templates/lv2-make/Makefile | 2 +- templates/vst3-make/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/cmd-make/Makefile b/templates/cmd-make/Makefile index 5aa15a6..e7dcda8 100644 --- a/templates/cmd-make/Makefile +++ b/templates/cmd-make/Makefile @@ -54,7 +54,7 @@ CFLAGS := -O3 -Wall -Wpedantic -Wextra CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -I$(TINYWAV_DIR) -I$(MIDI_PARSER_DIR)/include -fvisibility=hidden $(CFLAGS_EXTRA) $(CFLAGS) LDFLAGS := -LDFLAGS_ALL := -static-libstdc++ -Wl,--as-needed $(LDFLAGS_EXTRA) $(LDFLAGS) +LDFLAGS_ALL := -static $(LDFLAGS_EXTRA) $(LDFLAGS) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -I$(TINYWAV_DIR) -I$(MIDI_PARSER_DIR)/include $(CXXFLAGS_EXTRA) $(CXXFLAGS) diff --git a/templates/lv2-make/Makefile b/templates/lv2-make/Makefile index 5ba4b89..44961e2 100644 --- a/templates/lv2-make/Makefile +++ b/templates/lv2-make/Makefile @@ -68,7 +68,7 @@ CFLAGS := -O3 -Wall -Wpedantic -Wextra CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) $(shell pkg-config --cflags lv2) -fPIC -fvisibility=hidden $(CFLAGS_EXTRA) $(CFLAGS) LDFLAGS := -LDFLAGS_ALL := -shared -static-libstdc++ -Wl,--as-needed $(shell pkg-config --libs lv2) $(LDFLAGS_EXTRA) $(LDFLAGS) +LDFLAGS_ALL := -shared -static $(shell pkg-config --libs lv2) $(LDFLAGS_EXTRA) $(LDFLAGS) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) $(shell pkg-config --cflags lv2) -fPIC -fvisibility=hidden $(CXXFLAGS_EXTRA) $(CXXFLAGS) diff --git a/templates/vst3-make/Makefile b/templates/vst3-make/Makefile index 12c9e9b..dd6ef7b 100644 --- a/templates/vst3-make/Makefile +++ b/templates/vst3-make/Makefile @@ -72,7 +72,7 @@ CFLAGS := -O3 -Wall -Wpedantic -Wextra CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -fPIC -fvisibility=hidden $(CFLAGS_EXTRA) $(CFLAGS) LDFLAGS := -LDFLAGS_ALL := -shared -lm -static-libstdc++ -Wl,--as-needed $(LDFLAGS_EXTRA) $(LDFLAGS) +LDFLAGS_ALL := -shared -static -lm $(LDFLAGS_EXTRA) $(LDFLAGS) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -fPIC $(CXXFLAGS_EXTRA) $(CXXFLAGS) From 5df2ff7689ced172f8e0f01ebc1058b25d3072f4 Mon Sep 17 00:00:00 2001 From: Stefano D'Angelo Date: Fri, 26 Sep 2025 15:57:38 +0200 Subject: [PATCH 4/4] no static on macos --- templates/cmd-make/Makefile | 4 +++- templates/lv2-make/Makefile | 4 +++- templates/vst3-make/Makefile | 4 +++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/cmd-make/Makefile b/templates/cmd-make/Makefile index e7dcda8..1a654c2 100644 --- a/templates/cmd-make/Makefile +++ b/templates/cmd-make/Makefile @@ -54,7 +54,7 @@ CFLAGS := -O3 -Wall -Wpedantic -Wextra CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -I$(TINYWAV_DIR) -I$(MIDI_PARSER_DIR)/include -fvisibility=hidden $(CFLAGS_EXTRA) $(CFLAGS) LDFLAGS := -LDFLAGS_ALL := -static $(LDFLAGS_EXTRA) $(LDFLAGS) +LDFLAGS_ALL := $(LDFLAGS_EXTRA) $(LDFLAGS) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -I$(TINYWAV_DIR) -I$(MIDI_PARSER_DIR)/include $(CXXFLAGS_EXTRA) $(CXXFLAGS) @@ -63,6 +63,8 @@ ifeq ($(UNAME_S), Darwin) CFLAGS_ALL := $(CFLAGS_ALL) -arch arm64 -arch x86_64 LDFLAGS_ALL := $(LDFLAGS_ALL) -arch arm64 -arch x86_64 CXXFLAGS_ALL := $(CXXFLAGS_ALL) -arch arm64 -arch x86_64 +else + LDFLAGS_ALL := -static $(LDFLAGS_ALL) endif PROGRAM := $(BUNDLE_NAME)$(EXE_SUFFIX) diff --git a/templates/lv2-make/Makefile b/templates/lv2-make/Makefile index 44961e2..8ca54ca 100644 --- a/templates/lv2-make/Makefile +++ b/templates/lv2-make/Makefile @@ -68,7 +68,7 @@ CFLAGS := -O3 -Wall -Wpedantic -Wextra CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) $(shell pkg-config --cflags lv2) -fPIC -fvisibility=hidden $(CFLAGS_EXTRA) $(CFLAGS) LDFLAGS := -LDFLAGS_ALL := -shared -static $(shell pkg-config --libs lv2) $(LDFLAGS_EXTRA) $(LDFLAGS) +LDFLAGS_ALL := -shared $(shell pkg-config --libs lv2) $(LDFLAGS_EXTRA) $(LDFLAGS) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) $(shell pkg-config --cflags lv2) -fPIC -fvisibility=hidden $(CXXFLAGS_EXTRA) $(CXXFLAGS) @@ -77,6 +77,8 @@ ifeq ($(UNAME_S), Darwin) CFLAGS_ALL := $(CFLAGS_ALL) -arch arm64 -arch x86_64 LDFLAGS_ALL := $(LDFLAGS_ALL) -arch arm64 -arch x86_64 CXXFLAGS_ALL := $(CXXFLAGS_ALL) -arch arm64 -arch x86_64 +else + LDFLAGS_ALL := -static $(LDFLAGS_ALL) endif DLL_FILE := $(BUNDLE_NAME)$(DLL_SUFFIX) diff --git a/templates/vst3-make/Makefile b/templates/vst3-make/Makefile index dd6ef7b..58cb521 100644 --- a/templates/vst3-make/Makefile +++ b/templates/vst3-make/Makefile @@ -72,7 +72,7 @@ CFLAGS := -O3 -Wall -Wpedantic -Wextra CFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -fPIC -fvisibility=hidden $(CFLAGS_EXTRA) $(CFLAGS) LDFLAGS := -LDFLAGS_ALL := -shared -static -lm $(LDFLAGS_EXTRA) $(LDFLAGS) +LDFLAGS_ALL := -shared -lm $(LDFLAGS_EXTRA) $(LDFLAGS) CXXFLAGS := $(CFLAGS) CXXFLAGS_ALL := -I$(DATA_DIR)/src -I$(PLUGIN_DIR) -I$(API_DIR) -fPIC $(CXXFLAGS_EXTRA) $(CXXFLAGS) @@ -84,6 +84,8 @@ ifeq ($(UNAME_S), Darwin) ifeq ($(HAS_UI), yes) LDFLAGS_ALL := $(LDFLAGS_ALL) -Wl,-framework,Foundation -Wl,-framework,Cocoa -Wl,-framework,Corevideo endif +else + LDFLAGS_ALL := -static $(LDFLAGS_ALL) endif ifeq ($(UNAME_S), Linux)