todo: only build the executable with -pie
This commit is contained in:
parent
ab83dabe4f
commit
463f8682a0
|
@ -4,7 +4,7 @@ cppflags_force=-I../include
|
||||||
cflags_force=`pkg-config --cflags libDesktop`
|
cflags_force=`pkg-config --cflags libDesktop`
|
||||||
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
|
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||||
ldflags_force=`pkg-config --libs libDesktop` -lintl
|
ldflags_force=`pkg-config --libs libDesktop` -lintl
|
||||||
ldflags=-pie -Wl,-z,relro -Wl,-z,now
|
ldflags=-Wl,-z,relro -Wl,-z,now
|
||||||
dist=Makefile,priority.h,task.h,taskedit.h,todo.h,window.h
|
dist=Makefile,priority.h,task.h,taskedit.h,todo.h,window.h
|
||||||
|
|
||||||
#targets
|
#targets
|
||||||
|
@ -19,7 +19,7 @@ type=binary
|
||||||
sources=main.c
|
sources=main.c
|
||||||
depends=libTodo$(SOEXT)
|
depends=libTodo$(SOEXT)
|
||||||
cflags=-fPIE
|
cflags=-fPIE
|
||||||
ldflags=-L. -Wl,-rpath,$(LIBDIR) -lTodo
|
ldflags=-pie -L. -Wl,-rpath,$(LIBDIR) -lTodo
|
||||||
install=$(BINDIR)
|
install=$(BINDIR)
|
||||||
|
|
||||||
#sources
|
#sources
|
||||||
|
|
Loading…
Reference in New Issue
Block a user