summaryrefslogtreecommitdiffstats
path: root/tdeioslave/nfs
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2018-08-26 04:08:32 +0200
committerSlávek Banko <slavek.banko@axis.cz>2018-08-26 04:08:41 +0200
commitcb787d0541a806a6bb4f3b01517dcbf5663a8c7a (patch)
treed94397b40db069544a3151c086f3bac5c2979757 /tdeioslave/nfs
parent11333a810ebb146394a0c5b41d045cc894bb3ef4 (diff)
downloadtdebase-cb787d0541a806a6bb4f3b01517dcbf5663a8c7a.tar.gz
tdebase-cb787d0541a806a6bb4f3b01517dcbf5663a8c7a.zip
tdeioslave nfs: Add support for libtirpc
as a replacement for deprecated SunRPC from glibc >= 2.26 This resolves bug 2962 Signed-off-by: Fabio Rossi <rossi.f@inwind.it> (cherry picked from commit f6a5cd3e8dcc0a58c04afb14857d43bf98080529)
Diffstat (limited to 'tdeioslave/nfs')
-rw-r--r--tdeioslave/nfs/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/tdeioslave/nfs/CMakeLists.txt b/tdeioslave/nfs/CMakeLists.txt
index b45824d73..1f0749898 100644
--- a/tdeioslave/nfs/CMakeLists.txt
+++ b/tdeioslave/nfs/CMakeLists.txt
@@ -15,6 +15,7 @@ include_directories(
${CMAKE_BINARY_DIR}
${TDE_INCLUDE_DIR}
${TQT_INCLUDE_DIRS}
+ ${TIRPC_INCLUDE_DIRS}
)
link_directories(
@@ -32,15 +33,15 @@ install( FILES nfs.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
set( target tdeio_nfs )
add_custom_command( OUTPUT mount_xdr.c
- COMMAND rpcgen -c -o mount_xdr.c ${CMAKE_CURRENT_SOURCE_DIR}/mount.x
+ COMMAND ${RPCGEN_BINARY} -c -o mount_xdr.c ${CMAKE_CURRENT_SOURCE_DIR}/mount.x
DEPENDS mount.x )
add_custom_command( OUTPUT nfs_prot_xdr.c
- COMMAND rpcgen -c -o nfs_prot_xdr.c ${CMAKE_CURRENT_SOURCE_DIR}/nfs_prot.x
+ COMMAND ${RPCGEN_BINARY} -c -o nfs_prot_xdr.c ${CMAKE_CURRENT_SOURCE_DIR}/nfs_prot.x
DEPENDS nfs_prot.x )
tde_add_kpart( ${target} AUTOMOC
SOURCES tdeio_nfs.cpp mount_xdr.c nfs_prot_xdr.c
- LINK tdeio-shared
+ LINK tdeio-shared ${TIRPC_LIBRARIES}
DESTINATION ${PLUGIN_INSTALL_DIR}
)