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=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
|
||||
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
|
||||
|
||||
#targets
|
||||
|
@ -19,7 +19,7 @@ type=binary
|
|||
sources=main.c
|
||||
depends=libTodo$(SOEXT)
|
||||
cflags=-fPIE
|
||||
ldflags=-L. -Wl,-rpath,$(LIBDIR) -lTodo
|
||||
ldflags=-pie -L. -Wl,-rpath,$(LIBDIR) -lTodo
|
||||
install=$(BINDIR)
|
||||
|
||||
#sources
|
||||
|
|
Loading…
Reference in New Issue
Block a user