]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
build: Do not build the progname module if it is not needed
authorGuillem Jover <guillem@hadrons.org>
Sat, 22 Apr 2023 18:47:20 +0000 (20:47 +0200)
committerGuillem Jover <guillem@hadrons.org>
Sat, 29 Jul 2023 18:11:53 +0000 (20:11 +0200)
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
src/Makefile.am

index 9d22b00325096792c3ac38465e1b77bb68ec7d11..6f2325c2b20b50478037b878715d518cb9520bab 100644 (file)
@@ -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 \