$OpenBSD: patch-3d-viewer_3d_cache_sg_CMakeLists_txt,v 1.2 2021/11/22 14:55:53 tracey Exp $

Index: 3d-viewer/3d_cache/sg/CMakeLists.txt
--- 3d-viewer/3d_cache/sg/CMakeLists.txt.orig
+++ 3d-viewer/3d_cache/sg/CMakeLists.txt
@@ -93,7 +93,10 @@ unset( S3DSG_VERSION_FILE CACHE )
 # Define a flag to expose the appropriate EXPORT macro at build time
 target_compile_definitions( kicad_3dsg PRIVATE -DCOMPILE_SGLIB )
 
-target_link_libraries( kicad_3dsg ${wxWidgets_LIBRARIES} )
+target_link_libraries( kicad_3dsg
+                       stdc++
+		       c
+                       ${wxWidgets_LIBRARIES} )
 
 # Don't specify the ARCHIVE DESTINATION parameter to prevent
 # the install of the import library on Windows
