diff options
Diffstat (limited to 'net-libs/libhackrf/files/hackrf-disable-static-2022.09.1.patch')
-rw-r--r-- | net-libs/libhackrf/files/hackrf-disable-static-2022.09.1.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/net-libs/libhackrf/files/hackrf-disable-static-2022.09.1.patch b/net-libs/libhackrf/files/hackrf-disable-static-2022.09.1.patch new file mode 100644 index 000000000000..f7e9fa39cc5e --- /dev/null +++ b/net-libs/libhackrf/files/hackrf-disable-static-2022.09.1.patch @@ -0,0 +1,30 @@ +diff -Naur libhackrf-orig/src/CMakeLists.txt libhackrf/src/CMakeLists.txt +--- libhackrf-orig/src/CMakeLists.txt 2022-09-29 09:47:10.899630179 -0400 ++++ libhackrf/src/CMakeLists.txt 2022-09-29 09:47:30.835629516 -0400 +@@ -31,15 +31,11 @@ + set_target_properties(hackrf PROPERTIES VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.0 SOVERSION 0) + + # Static library +-add_library(hackrf-static STATIC ${c_sources}) + if(MSVC) + set_target_properties(hackrf-static PROPERTIES OUTPUT_NAME "hackrf_static") +-else() +- set_target_properties(hackrf-static PROPERTIES OUTPUT_NAME "hackrf") + endif() + + set_target_properties(hackrf PROPERTIES CLEAN_DIRECT_OUTPUT 1) +-set_target_properties(hackrf-static PROPERTIES CLEAN_DIRECT_OUTPUT 1) + + # Dependencies + target_link_libraries(hackrf ${LIBUSB_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT}) +@@ -55,10 +51,6 @@ + LIBRARY DESTINATION lib${LIB_SUFFIX} + COMPONENT sharedlibs + ) +- install(TARGETS hackrf-static +- ARCHIVE DESTINATION lib${LIB_SUFFIX} +- COMPONENT staticlibs +- ) + install(FILES ${c_headers} + DESTINATION include/${PROJECT_NAME} + COMPONENT headers |