This commit provides a fix for the removal of interfaces
related to Sun RPC from glibc. See
<https://fedoraproject.org/wiki/Changes/SunRPCRemoval>
Warning: This commit hast not been thoroughly tested yet.
Now required for compilation:
- on OpenSUSE: libtirpc-devel rpcgen
- on Arch Linux: libtirpc rpcsvc-proto
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 =
CPPFLAGS =
endif
-INCDIR = -I.
+INCDIR = -I. -I/usr/include/tirpc
CC = gcc
CFLAGS = -pipe -g -Wall -O3 -fPIC
LDFLAGS =
LIBDIR =
-LOADLIBES = -lm
+LOADLIBES = -lm -ltirpc
# ------------ TARGETS -------------------------------------------------
endif
endif
-INCDIR = -I../../libtrbnet
+INCDIR = -I../../libtrbnet -I/usr/include/tirpc
CFLAGS = -pipe -g -Wall -Winline -O3 -fPIC -finline-functions -finline-limit=600000
LD = $(CC)
#LD = $(CXX)
-LDFLAGS =
+LDFLAGS = -ltirpc
LIBDIR = -L../../libtrbnet
LOADLIBES = -Wl,-Bstatic -ltrbnet -Wl,-Bdynamic -lm