From 4db6ec16fb68d92e08ef175d25948f70b0e7d981 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Sat, 7 Feb 2026 02:46:12 +0700 Subject: [PATCH] fix some builds --- CMakeLists.txt | 2 +- meson.build | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 062756e..4e13cd1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project(auth_service LANGUAGES C) set(CMAKE_C_STANDARD 23) set(CMAKE_EXPORT_COMPILE_COMMANDS ON) -set(CMAKE_C_FLAGS "-ffunction-sections -fdata-sections") +set(CMAKE_C_FLAGS "-ffunction-sections -fdata-sections -DMG_TLS=MG_TLS_OPENSSL") if (APPLE) elseif (UNIX) set(CMAKE_EXE_LINKER_FLAGS "-Wl,--gc-sections") diff --git a/meson.build b/meson.build index 028b0d6..d17f551 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project('auth_service', 'c', default_options: ['c_std=gnu2x']) include_dirs = include_directories('src', 'src/lib') deps = [dependency('openssl')] -extra_c_args = ['-ffunction-sections', '-fdata-sections'] +extra_c_args = ['-ffunction-sections', '-fdata-sections', '-DMG_TLS=MG_TLS_OPENSSL'] extra_c_link_args = [] system = host_machine.system() if system == 'linux'