From 652483c57953ea590cecaeebe9f553b151e6c41a Mon Sep 17 00:00:00 2001 From: Philipp Klaus Date: Fri, 7 Sep 2018 15:20:30 +0200 Subject: [PATCH] Switch from sunrpc (formerly part of glibc) to libtirpc This commit provides a fix for the removal of interfaces related to Sun RPC from glibc. See Warning: This commit hast not been thoroughly tested yet. Now required for compilation: - on OpenSUSE: libtirpc-devel rpcgen - on Arch Linux: libtirpc rpcsvc-proto --- libtrbnet/Makefile | 4 ++-- trbnetd/Makefile | 4 ++-- trbnetd/server/Makefile | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/libtrbnet/Makefile b/libtrbnet/Makefile index be9f18d..ac23e54 100644 --- a/libtrbnet/Makefile +++ b/libtrbnet/Makefile @@ -21,13 +21,13 @@ else endif endif -INCDIR = -I. +INCDIR = -I. -I/usr/include/tirpc CPPFLAGS += #-DTRB_DEBUGGER #-DHEXMODE CFLAGS = -pipe -g -Wall -Winline -O3 -fPIC -finline-functions -finline-limit=600000 LD = $(CC) -LDFLAGS = -lm +LDFLAGS = -lm -ltirpc LIBDIR = LOADLIBES = diff --git a/trbnetd/Makefile b/trbnetd/Makefile index 16b606f..01b0f76 100644 --- a/trbnetd/Makefile +++ b/trbnetd/Makefile @@ -11,7 +11,7 @@ else CPPFLAGS = endif -INCDIR = -I. +INCDIR = -I. -I/usr/include/tirpc CC = gcc CFLAGS = -pipe -g -Wall -O3 -fPIC @@ -24,7 +24,7 @@ LD = $(CC) LDFLAGS = LIBDIR = -LOADLIBES = -lm +LOADLIBES = -lm -ltirpc # ------------ TARGETS ------------------------------------------------- diff --git a/trbnetd/server/Makefile b/trbnetd/server/Makefile index 8f2f0ff..1772dff 100644 --- a/trbnetd/server/Makefile +++ b/trbnetd/server/Makefile @@ -21,7 +21,7 @@ else endif endif -INCDIR = -I../../libtrbnet +INCDIR = -I../../libtrbnet -I/usr/include/tirpc CFLAGS = -pipe -g -Wall -Winline -O3 -fPIC -finline-functions -finline-limit=600000 @@ -31,7 +31,7 @@ CXXFLAGS = -pipe -g -Wall LD = $(CC) #LD = $(CXX) -LDFLAGS = +LDFLAGS = -ltirpc LIBDIR = -L../../libtrbnet LOADLIBES = -Wl,-Bstatic -ltrbnet -Wl,-Bdynamic -lm -- 2.43.0