File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,14 +36,14 @@ ifeq ($(CC),tcc)
3636CCOPT: =-Wall -I.
3737else
3838ifeq ($(CC ) ,clang)
39- CCOPT: =-Wall -Wextra -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I. --std=gnu89
39+ CCOPT: =-Wall -Wextra -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I. --std=gnu89 -fPIE
4040else
4141ifeq ($(shell uname -s) ,OpenBSD)
4242ifeq ($(CC ) ,cc)
4343CC: =egcc
4444endif
4545endif
46- CCOPT: =-Wall -Wextra -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I. --std=gnu89
46+ CCOPT: =-Wall -Wextra -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -I. --std=gnu89 -fPIE
4747endif
4848endif
4949ifeq ($(CC ) ,egcc)
6161endif
6262
6363MYCFLAGS =$(DEBUG ) $(CPPFLAGS ) $(CFLAGS ) $(CCOPT )
64- MYLDFLAGS =$(LDFLAGS )
64+ MYLDFLAGS =$(LDFLAGS ) -fPIE -pie
6565
6666STRIP? =strip
6767
You can’t perform that action at this time.
0 commit comments