From 6a0850be7b1a21b2b5529ef05bb9705998640802 Mon Sep 17 00:00:00 2001 From: Craig Small Date: Wed, 24 Jun 2015 22:27:24 +1000 Subject: [PATCH] pwdx: Do not link to libprocps pwdx doesn't actually use any of the libprocps functions but it is linked because it is the default. This specific LDADD removes that unrequired linking. --- Makefile.am | 1 + pwdx.c | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 3f3af304..ba74103e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -125,6 +125,7 @@ pgrep_SOURCES = pgrep.c lib/fileutils.c lib/nsutils.c pkill_SOURCES = pgrep.c lib/fileutils.c lib/nsutils.c pmap_SOURCES = pmap.c lib/fileutils.c pwdx_SOURCES = pwdx.c lib/fileutils.c +pwdx_LDADD= sysctl_SOURCES = sysctl.c lib/fileutils.c tload_SOURCES = tload.c lib/strutils.c lib/fileutils.c uptime_SOURCES = uptime.c lib/fileutils.c diff --git a/pwdx.c b/pwdx.c index 9d409027..07bedfc8 100644 --- a/pwdx.c +++ b/pwdx.c @@ -26,7 +26,6 @@ #include #include -#include "proc/version.h" #include "c.h" #include "nls.h" #include "xalloc.h"