File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -1136,11 +1136,13 @@ elseif(APPLE)
11361136 target_compile_definitions (libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE __STDC_WANT_LIB_EXT1__ _FILE_OFFSET_BITS=64 _DARWIN_C_SOURCE)
11371137elseif (OpenBSD)
11381138 target_compile_definitions (libfastfetch PUBLIC _XOPEN_SOURCE=700 _FILE_OFFSET_BITS=64 _BSD_SOURCE)
1139+ set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,/usr/X11R6/lib" ) # detect x11 lib path automatically
11391140elseif (SunOS)
11401141 target_compile_definitions (libfastfetch PUBLIC _GNU_SOURCE _XOPEN_SOURCE __STDC_WANT_LIB_EXT1__ _FILE_OFFSET_BITS=64 __EXTENSIONS__ _POSIX_C_SOURCE)
11411142elseif (NetBSD)
11421143 target_compile_definitions (libfastfetch PUBLIC _GNU_SOURCE)
11431144 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-char-subscripts" )
1145+ set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,/usr/X11R7/lib" ) # ditto
11441146endif ()
11451147
11461148if (HAVE_STATX)
You can’t perform that action at this time.
0 commit comments