summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2020-11-25 12:39:32 +0100
committerThierry Vignaud <thierry.vignaud@gmail.com>2020-11-25 12:47:29 +0100
commit3432335ccab5911501698db54f04ac30a80cf961 (patch)
tree562ce79bf643f18a567e732f18d565c4fbb72587
parent65628f0419978af9b9c3a564a9af1d549cb8d62c (diff)
downloaddrakx-3432335ccab5911501698db54f04ac30a80cf961.tar
drakx-3432335ccab5911501698db54f04ac30a80cf961.tar.gz
drakx-3432335ccab5911501698db54f04ac30a80cf961.tar.bz2
drakx-3432335ccab5911501698db54f04ac30a80cf961.tar.xz
drakx-3432335ccab5911501698db54f04ac30a80cf961.zip
Fix compiling with glibc-2.32
Old legacy RPC bits were finally axed so we need to link against libtirpc
-rw-r--r--perl-install/Makefile.drakxtools3
-rw-r--r--perl-install/NEWS2
-rw-r--r--tools/Makefile3
3 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/Makefile.drakxtools b/perl-install/Makefile.drakxtools
index e418c9e6d..431f3a85d 100644
--- a/perl-install/Makefile.drakxtools
+++ b/perl-install/Makefile.drakxtools
@@ -103,3 +103,6 @@ check:
rm -f share/po/libDrakX.pot standalone/po/libDrakX-standalone.pot
@make -C share/po libDrakX.pot
@make -C standalone/po libDrakX-standalone.pot
+
+../tools/rpcinfo-flushed:
+ cd ../tools; gcc -Wall $(shell pkg-config libtirpc --cflags --libs) rpcinfo-flushed.c -o rpcinfo-flushed
diff --git a/perl-install/NEWS b/perl-install/NEWS
index b391b97e7..447370833 100644
--- a/perl-install/NEWS
+++ b/perl-install/NEWS
@@ -1,3 +1,5 @@
+- fix compiling tools/rpcinfo-flushed with glibc-2.32
+
Version 18.35 - 20 November 2020
- diskdrake:
diff --git a/tools/Makefile b/tools/Makefile
index c563a03f7..bac17c3e7 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -1,5 +1,6 @@
DIRS = serial_probe
-CFLAGS = -Wall
+LDFLAGS = $(shell pkg-config libtirpc --libs)
+CFLAGS = -Wall $(shell pkg-config libtirpc --cflags)
ARCH := $(shell arch | egrep "x86_64")
ifneq ("x$(ARCH)", "x")