CMake (NetBSD): add /usr/pkg/lib to rpath

This commit is contained in:
李通洲 2024-11-04 14:27:43 +08:00
parent e4b98b3494
commit 7ceabcc03e
No known key found for this signature in database
GPG Key ID: 269AD4F5325A22A3

View File

@ -1156,7 +1156,7 @@ elseif(SunOS)
elseif(NetBSD)
target_compile_definitions(libfastfetch PUBLIC _GNU_SOURCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-char-subscripts")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,/usr/X11R7/lib") # ditto
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-rpath,/usr/X11R7/lib -Wl,-rpath,/usr/pkg/lib") # ditto
endif()
if(HAVE_STATX)