From: Anas Nashif Date: Sat, 10 Nov 2012 15:23:44 +0000 (-0800) Subject: pie X-Git-Tag: submit/trunk/20130325.083904~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c352f1cf9d1100d01019e7ef0df2d992db1d3aba;p=platform%2Fupstream%2Futempter.git pie --- diff --git a/Makefile b/Makefile index 3137a5a..0758a01 100644 --- a/Makefile +++ b/Makefile @@ -21,6 +21,12 @@ clean: %.os : %.c $(CC) -c $(CFLAGS) -fPIC $< -o $@ +%.o : %.c + $(CC) -c $(CFLAGS) -fpie $< -o $@ + +utempter: utempter.o + $(CC) -o $@ -pie $^ + install: mkdir -p $(RPM_BUILD_ROOT)/usr/sbin mkdir -p $(RPM_BUILD_ROOT)/$(LIBDIR)