2 CFLAGS
+= -g
-Wall
-O2
-pipe
3 LDFLAGS
+= -Wl
,-z
,relro
5 LDFLAGS
+= -Wl
,--enable-new-dtags
6 LDFLAGS
+= -Wl
,--hash-style
=both
7 #LDFLAGS += -Wl,--disable-new-dtags
8 #LDFLAGS += -Wl,--hash-style=sysv
14 $(OBJCOPY
) --strip-debug foo
15 $(OBJCOPY
) --add-gnu-debuglink
=foo.dbg foo
18 $(OBJCOPY
) --only-keep-debug foo foo.dbg