mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-13 06:23:45 -04:00
20 lines
1.1 KiB
CMake
20 lines
1.1 KiB
CMake
$NetBSD: patch-cmake_modules_AddLLVM.cmake,v 1.1 2016/03/11 06:50:42 tnn Exp $
|
|
|
|
Don't use non-portable -z discard-unused on SunOS.
|
|
|
|
--- cmake/modules/AddLLVM.cmake.orig 2016-02-12 17:52:29.000000000 +0000
|
|
+++ cmake/modules/AddLLVM.cmake
|
|
@@ -174,9 +174,9 @@ function(add_link_opts target_name)
|
|
# ld64's implementation of -dead_strip breaks tools that use plugins.
|
|
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
|
|
LINK_FLAGS " -Wl,-dead_strip")
|
|
- elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
|
- set_property(TARGET ${target_name} APPEND_STRING PROPERTY
|
|
- LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
|
|
+# elseif(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
|
|
+# set_property(TARGET ${target_name} APPEND_STRING PROPERTY
|
|
+# LINK_FLAGS " -Wl,-z -Wl,discard-unused=sections")
|
|
elseif(NOT WIN32 AND NOT LLVM_LINKER_IS_GOLD)
|
|
# Object files are compiled with -ffunction-data-sections.
|
|
# Versions of bfd ld < 2.23.1 have a bug in --gc-sections that breaks
|