[BACK]Return to patch-src_symbols.cmake CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / converters / opencc / patches

File: [cvs.NetBSD.org] / pkgsrc / converters / opencc / patches / Attic / patch-src_symbols.cmake (download)

Revision 1.1, Fri Feb 13 17:07:52 2015 UTC (9 years ago) by jperkin
Branch: MAIN
CVS Tags: pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1

Don't use GNU ld arguments on SunOS.

$NetBSD: patch-src_symbols.cmake,v 1.1 2015/02/13 17:07:52 jperkin Exp $

Don't use GNU ld arguments on SunOS.

--- src/symbols.cmake.orig	2013-04-11 17:23:05.000000000 +0000
+++ src/symbols.cmake
@@ -21,7 +21,7 @@ if (APPLE)
 	set(LINK_FLAGS
 		"${LINK_FLAGS} -Wl,-exported_symbols_list,'${_symbols_list}'")
 
-elseif (CMAKE_C_COMPILER_ID STREQUAL GNU)
+elseif (CMAKE_C_COMPILER_ID STREQUAL GNU AND NOT CPACK_SYSTEM_NAME STREQUAL SunOS)
 	# Create a version script for GNU ld.
 	set(_symbols "{ global: ${OPENCC_SYMBOLS}; local: *; };")
 	set(_version_script "${CMAKE_CURRENT_BINARY_DIR}/version.script")
@@ -37,4 +37,4 @@ set_target_properties(
 	PROPERTIES
 		LINK_FLAGS
 			"${LINK_FLAGS}"
-)
\ No newline at end of file
+)