Skip to content

Commit c691c24

Browse files
committed
GNUmakefile: fix installation logic for libstdbuf
It is better to check whether we're actually compiling libstdbuf, rather than to check whether we're on windows, in order to decide whether libstdbuf should get installed. Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
1 parent 3dcfe6c commit c691c24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ endif
475475

476476
install: build install-manpages install-completions install-locales
477477
mkdir -p $(INSTALLDIR_BIN)
478-
ifneq ($(OS),Windows_NT)
478+
ifneq (,$(and $(findstring stdbuf,$(UTILS)),$(findstring feat_external_libstdbuf,$(CARGOFLAGS))))
479479
mkdir -p $(DESTDIR)$(LIBSTDBUF_DIR)
480480
$(INSTALL) -m 755 $(BUILDDIR)/deps/libstdbuf* $(DESTDIR)$(LIBSTDBUF_DIR)/
481481
endif

0 commit comments

Comments
 (0)