From: Guillem Jover Date: Sat, 22 Apr 2023 18:47:20 +0000 (+0200) Subject: build: Do not build the progname module if it is not needed X-Git-Tag: 0.11.8~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf61ebb8455aa96b69dde1d19b1d09b17c0bd1e7;p=thirdparty%2Flibbsd.git build: Do not build the progname module if it is not needed This was made conditional, but the code part was accidentally left untouched due to having ported it locally to use __progname, which caused build failures on the stock repo. Fixes: commit 046621d7967e7a0f08ae988bcf7e4cd1b6cf204c --- diff --git a/src/Makefile.am b/src/Makefile.am index 9d22b00..6f2325c 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -95,7 +95,6 @@ libbsd_la_SOURCES = \ local-link.h \ merge.c \ pidfile.c \ - progname.c \ pwcache.c \ radixsort.c \ readpassphrase.c \ @@ -114,6 +113,12 @@ libbsd_la_SOURCES = \ vis.c \ # EOL +if NEED_PROGNAME +libbsd_la_SOURCES += \ + progname.c \ + # EOL +endif + if NEED_BSD_GETOPT libbsd_la_SOURCES += \ bsd_getopt.c \