From 65877a9c1260c1c37d1c3355703b1951b6754cdf Mon Sep 17 00:00:00 2001 From: Adeel <3840695+am11@users.noreply.github.com> Date: Mon, 20 Mar 2023 19:36:14 +0200 Subject: [PATCH] Specify -z notext on linux-musl-x86 --- src/coreclr/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/runtime/src/coreclr/CMakeLists.txt.orig b/src/runtime/src/coreclr/CMakeLists.txt index 7d1ce8d..5cacc78 100644 --- a/src/runtime/src/coreclr/CMakeLists.txt.orig +++ b/src/runtime/src/coreclr/CMakeLists.txt @@ -105,6 +105,10 @@ if(CLR_CMAKE_HOST_UNIX) endif() endif() + if(CLR_CMAKE_TARGET_ALPINE_LINUX AND CLR_CMAKE_TARGET_ARCH_I386) + add_linker_flag(-Wl,-z,notext) + endif() + add_subdirectory(pal) add_subdirectory(hosts) else()