Index: vendor/CMakeLists.fastboot.txt
--- vendor/CMakeLists.fastboot.txt.orig
+++ vendor/CMakeLists.fastboot.txt
@@ -119,6 +119,9 @@ set(fastboot_SOURCES
 if(APPLE)
 	list(APPEND fastboot_SOURCES
 		core/fastboot/usb_osx.cpp)
+elseif(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
+	list(APPEND fastboot_SOURCES
+		core/fastboot/usb_libusb.cpp)
 else()
 	list(APPEND fastboot_SOURCES
 		core/fastboot/usb_linux.cpp)
@@ -136,10 +139,16 @@ target_compile_definitions(fastboot PRIVATE
 target_link_libraries(fastboot
 	libsparse libzip libcutils liblog liblp libutil
 	libbase libext4 libselinux libsepol libdiagnoseusb crypto
-	z PkgConfig::libpcre2-8 Threads::Threads dl)
+	z PkgConfig::libpcre2-8 Threads::Threads)
+if(NOT CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
+	target_link_libraries(fastboot dl)
+endif()
 
 if(APPLE)
 	target_link_libraries(fastboot
 		"-framework CoreFoundation"
 		"-framework IOKit")
+endif()
+if(CMAKE_SYSTEM_NAME STREQUAL "OpenBSD")
+	target_link_libraries(fastboot PkgConfig::libusb-1.0)
 endif()
