Browse Source

Use --whole-archive for internal static libs

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.2.0-RC1
falkTX 4 years ago
parent
commit
4fc8860bde
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
4 changed files with 6 additions and 4 deletions
  1. +2
    -2
      source/Makefile.mk
  2. +1
    -1
      source/plugin/carla-vst-export-bridged.cpp
  3. +1
    -0
      source/plugin/symbols/carla-native-plugin.txt
  4. +2
    -1
      source/plugin/symbols/carla-native-plugin.version

+ 2
- 2
source/Makefile.mk View File

@@ -657,8 +657,8 @@ BASE_FLAGS += -DCARLA_LIB_EXT=\"$(LIB_EXT)\"
# Set static libs start & end

ifneq ($(MACOS),true)
LIBS_START = -Wl,--start-group
LIBS_END = -Wl,--end-group
LIBS_START = -Wl,--start-group -Wl,--whole-archive
LIBS_END = -Wl,--no-whole-archive -Wl,--end-group
endif

# ---------------------------------------------------------------------------------------------------------------------


+ 1
- 1
source/plugin/carla-vst-export-bridged.cpp View File

@@ -32,7 +32,7 @@ typedef const AEffect* (__cdecl *MainCallback)(audioMasterCallback);

static HINSTANCE currentModuleHandle = nullptr;

HINSTANCE getCurrentModuleInstanceHandle() noexcept
static HINSTANCE getCurrentModuleInstanceHandle() noexcept
{
if (currentModuleHandle == nullptr)
currentModuleHandle = GetModuleHandleA(nullptr);


+ 1
- 0
source/plugin/symbols/carla-native-plugin.txt View File

@@ -1,3 +1,4 @@
carla_get_native_rack_plugin
carla_get_native_patchbay_plugin
carla_get_native_patchbay16_plugin
carla_get_native_patchbay32_plugin


+ 2
- 1
source/plugin/symbols/carla-native-plugin.version View File

@@ -1,5 +1,6 @@
{
global: carla_get_native_patchbay_plugin;
global: carla_get_native_rack_plugin;
carla_get_native_patchbay_plugin;
carla_get_native_patchbay16_plugin;
carla_get_native_patchbay32_plugin;
carla_get_native_patchbay64_plugin;


Loading…
Cancel
Save