$OpenBSD: patch-src_openrct2_CMakeLists_txt,v 1.3 2018/03/19 02:59:49 bcallah Exp $

Index: src/openrct2/CMakeLists.txt
--- src/openrct2/CMakeLists.txt.orig
+++ src/openrct2/CMakeLists.txt
@@ -96,7 +96,7 @@ if (NOT APPLE AND NOT MINGW)
     # This is ugly hack to work around https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1568899.
     # Once C++17 is enabled (and thus old compilers are no longer supported, this needs to be gone.
     # We cannot simply detect the _compiler_ version, as the bug exists with the C++ _library_
-    target_link_libraries(${PROJECT} gcc_s gcc)
+    target_link_libraries(${PROJECT})
 endif ()
 
 if (NOT DISABLE_TTF)
@@ -115,7 +115,7 @@ endif ()
 
 if (UNIX OR STATIC OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD")
     find_library(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c)
-    target_link_libraries(${PROJECT} ${ICONV_LIBRARIES})
+    target_link_libraries(${PROJECT} ${ICONV_LIBRARIES} -L${OPENBSD_X11BASE}/lib)
 endif()
 
 if (HAVE_DISCORD_RPC)
