notes: only build the executable with -pie
This commit is contained in:
parent
74aeed83bd
commit
7b3fdf9039
|
@ -3,7 +3,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,note.h,noteedit.h,notes.h,window.h
|
||||
|
||||
#modes
|
||||
|
@ -30,7 +30,7 @@ type=binary
|
|||
sources=main.c
|
||||
depends=libNotes$(SOEXT)
|
||||
cflags=-fPIE
|
||||
ldflags=-L. -Wl,-rpath,$(LIBDIR) -lNotes
|
||||
ldflags=-pie -L. -Wl,-rpath,$(LIBDIR) -lNotes
|
||||
install=$(BINDIR)
|
||||
|
||||
#sources
|
||||
|
|
Loading…
Reference in New Issue
Block a user