void-packages/srcpkgs/obexftp/patches/fix-cross.patch

80 lines
1.9 KiB
Diff

diff --git a/bfb/CMakeLists.txt b/bfb/CMakeLists.txt
index 008241d..be233aa 100644
--- bfb/CMakeLists.txt
+++ bfb/CMakeLists.txt
@@ -16,14 +16,17 @@ set ( bfb_HEADERS
${bfb_PUBLIC_HEADERS}
)
-add_executable (crctable
- crcmodel.h
- crcmodel.c
- crctable.c
+add_custom_command(
+ OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/crctable
+ COMMAND cc
+ ARGS -o ${CMAKE_CURRENT_BINARY_DIR}/crctable ${CMAKE_SOURCE_DIR}/bfb/crcmodel.h ${CMAKE_SOURCE_DIR}/bfb/crcmodel.c ${CMAKE_SOURCE_DIR}/bfb/crctable.c
+ DEPENDS crcmodel.h crcmodel.c crctable.c
)
-add_custom_command ( OUTPUT irda_fcs_table.c
- COMMAND crctable
+add_custom_command (
+ OUTPUT irda_fcs_table.c
+ DEPENDS crctable
+ COMMAND ${CMAKE_CURRENT_BINARY_DIR}/crctable
)
add_library ( bfb
diff --git apps/CMakeLists.txt apps/CMakeLists.txt
index b5c84e4..e43aaeb 100644
--- apps/CMakeLists.txt
+++ apps/CMakeLists.txt
@@ -5,14 +5,21 @@ add_definitions( -DVERSION="${obexftp_VERSION}" )
add_definitions ( -DHAVE_USB )
add_executable ( obexftp_app obexftp.c )
-target_link_libraries ( obexftp_app obexftp )
+target_link_libraries ( obexftp_app
+ multicobex
+ bfb
+ obexftp )
set_target_properties ( obexftp_app PROPERTIES
OUTPUT_NAME obexftp
)
add_executable ( obexftpd_app obexftpd.c )
-target_link_libraries ( obexftpd_app obexftp openobex )
+target_link_libraries ( obexftpd_app
+ multicobex
+ bfb
+ obexftp
+ openobex )
set_target_properties ( obexftpd_app PROPERTIES
OUTPUT_NAME obexftpd
)
diff --git fuse/CMakeLists.txt fuse/CMakeLists.txt
index 0c80d3d..bba052b 100644
--- fuse/CMakeLists.txt
+++ fuse/CMakeLists.txt
@@ -14,6 +14,8 @@ if ( Fuse_FOUND )
target_link_libraries ( obexfs
obexftp
+ multicobex
+ bfb
${Fuse_LIBRARIES}
${EXPAT_LIBRARIES}
)
@@ -24,6 +26,8 @@ if ( Fuse_FOUND )
target_link_libraries ( obexautofs
obexftp
+ multicobex
+ bfb
${Fuse_LIBRARIES}
)