[pve-devel] [PATCH RFC manager 2/2] Do not link against libdl since we use none of its symbols

Emmanuel Kasper e.kasper at proxmox.com
Tue Jul 18 17:37:28 CEST 2017


This fixes the warning:
dpkg-shlibdeps: warning: package could avoid a useless dependency if debian/pve-manager/usr/bin/pvemailforward was not linked against libdl.so.2 (it uses none of the library's symbols)
---
 bin/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bin/Makefile b/bin/Makefile
index c7fca9f8..c93d9c38 100644
--- a/bin/Makefile
+++ b/bin/Makefile
@@ -66,7 +66,7 @@ pvereport.1.pod: pvereport
 	mv $@.tmp $@
 
 pvemailforward: pvemailforward.c
-	gcc $< -o $@ -g -O2 -Wall -ldl -lc
+	gcc $< -o $@ -g -O2 -Wall -lc
 
 .PHONY: install
 install: ${SCRIPTS} ${CLI_MANS} ${SERVICE_MANS} pvemailforward $(addsuffix .service-bash-completion, ${SERVICES}) $(addsuffix .bash-completion, ${CLITOOLS})
-- 
2.11.0





More information about the pve-devel mailing list