summaryrefslogtreecommitdiff
path: root/configurecompiler.cmake
diff options
context:
space:
mode:
authorTomas Weinfurt <tweinfurt@yahoo.com>2018-11-12 20:49:36 (GMT)
committerGitHub <noreply@github.com>2018-11-12 20:49:36 (GMT)
commit0aab97266ea6620a17a20804c7aebfcdbd37a5b0 (patch)
treefef9db256988076efaae7b889b211bb348a36796 /configurecompiler.cmake
parent214c3b62d889b2ff57425ab3f4ce70adf7503be6 (diff)
downloadcoreclr-0aab97266ea6620a17a20804c7aebfcdbd37a5b0.zip
coreclr-0aab97266ea6620a17a20804c7aebfcdbd37a5b0.tar.gz
coreclr-0aab97266ea6620a17a20804c7aebfcdbd37a5b0.tar.bz2
enable build-id on FreeBSD (#20945)
Diffstat (limited to 'configurecompiler.cmake')
-rw-r--r--configurecompiler.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/configurecompiler.cmake b/configurecompiler.cmake
index 6567cef..d3c9111 100644
--- a/configurecompiler.cmake
+++ b/configurecompiler.cmake
@@ -331,6 +331,11 @@ if(CLR_CMAKE_PLATFORM_LINUX)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--build-id=sha1")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--build-id=sha1")
endif(CLR_CMAKE_PLATFORM_LINUX)
+if(CLR_CMAKE_PLATFORM_FREEBSD)
+ set(CMAKE_ASM_FLAGS "${CMAKE_ASM_FLAGS} -Wa,--noexecstack")
+ set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -fuse-ld=lld -Xlinker --build-id=sha1")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -fuse-ld=lld -Xlinker --build-id=sha1")
+endif(CLR_CMAKE_PLATFORM_FREEBSD)
#------------------------------------
# Definitions (for platform)