aboutsummaryrefslogtreecommitdiffstats
path: root/src/so.mk
diff options
context:
space:
mode:
authorLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-02-24 04:43:08 -0300
committerLibravatar Kelvin M. Klann <kmk3.code@protonmail.com>2024-05-29 17:35:35 -0300
commitfb11081becb80d681c2c8ab61125b42b12961314 (patch)
tree65ec3be0da6000b92dd65ef98b388e5636b8759d /src/so.mk
parentbuild: define CC/GAWK if undefined (diff)
downloadfirejail-fb11081becb80d681c2c8ab61125b42b12961314.tar.gz
firejail-fb11081becb80d681c2c8ab61125b42b12961314.tar.zst
firejail-fb11081becb80d681c2c8ab61125b42b12961314.zip
build: allow overriding common tools
Tools: * gzip * install * rm * strip * tar For the programs not checked in configure.ac: From the manual of GNU Autoconf (version 2.71): > If you use `AC_PROG_INSTALL`, you must include `install-sh` in your > distribution So set `install` just in the Makefile. Use `$(RM)` to ensure that `-f` is always used and to make it easier to spot when `-r` is used. See commit 93d623fdf ("build: allow overriding certain tools", 2024-02-23) / PR #6222.
Diffstat (limited to 'src/so.mk')
-rw-r--r--src/so.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/so.mk b/src/so.mk
index cb1f08b08..63a0da7ce 100644
--- a/src/so.mk
+++ b/src/so.mk
@@ -6,6 +6,7 @@
6# EXTRA_OBJS and extend CLEANFILES. 6# EXTRA_OBJS and extend CLEANFILES.
7 7
8CC ?= cc 8CC ?= cc
9RM ?= rm -f
9 10
10HDRS := 11HDRS :=
11SRCS := $(sort $(wildcard $(MOD_DIR)/*.c)) 12SRCS := $(sort $(wildcard $(MOD_DIR)/*.c))
@@ -27,4 +28,4 @@ $(SO): $(OBJS) $(EXTRA_OBJS) $(ROOT)/config.mk
27 $(CC) $(SO_LDFLAGS) -shared $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_OBJS) -ldl 28 $(CC) $(SO_LDFLAGS) -shared $(LDFLAGS) -o $@ $(OBJS) $(EXTRA_OBJS) -ldl
28 29
29.PHONY: clean 30.PHONY: clean
30clean:; rm -fr $(SO) $(CLEANFILES) 31clean:; $(RM) -r $(SO) $(CLEANFILES)