X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=c%2Funlink-wrapper%2FMakefile;fp=c%2Funlink-wrapper%2FMakefile;h=2d2f1f2dbc316701d5d80fd36e27ea3db1a0f4e4;hb=927194759cdb1b56077b469ac44121169b4af9ed;hp=0000000000000000000000000000000000000000;hpb=24306072441f3e4c10d7a40e416336f5b64a89db;p=mirrors%2FPrograms.git diff --git a/c/unlink-wrapper/Makefile b/c/unlink-wrapper/Makefile new file mode 100644 index 0000000..2d2f1f2 --- /dev/null +++ b/c/unlink-wrapper/Makefile @@ -0,0 +1,8 @@ +proj=unlink-wrapper + +unexport LD_PRELOAD +$(proj).so: $(proj).c + $(CC) -shared -fPIC -ldl $? -o $@ + # To test: + # export LD_PRELOAD=$(PWD)/$@ + # touch /tmp/deleteme; rm /tmp/deleteme