summaryrefslogtreecommitdiff
path: root/chat/weechat/patches/patch-src_plugins_ruby_CMakeLists.txt
blob: e0c83b534c1933ba67b9fd27f7661ca14e298685 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
$NetBSD: patch-src_plugins_ruby_CMakeLists.txt,v 1.1 2022/02/24 09:55:40 jperkin Exp $

RUBY_LDFLAGS may contain strings unsuitable for target_link_libraries(), for
example "-arch arm64" will get converted to "-arch -larm64".

--- src/plugins/ruby/CMakeLists.txt.orig	2021-12-18 07:57:32.000000000 +0000
+++ src/plugins/ruby/CMakeLists.txt
@@ -25,7 +25,7 @@ set_target_properties(ruby PROPERTIES PR
 
 if(RUBY_FOUND)
   include_directories(${RUBY_INCLUDE_DIRS})
-  target_link_libraries(ruby ${RUBY_LDFLAGS} weechat_plugins_scripts coverage_config)
+  target_link_libraries(ruby ${RUBY_LIBRARIES} weechat_plugins_scripts coverage_config)
 endif(RUBY_FOUND)
 
 install(TARGETS ruby LIBRARY DESTINATION ${WEECHAT_LIBDIR}/plugins)