Re: [dev] dwm make PIE default in config.mk

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Thu, 11 Dec 2014 12:53:58 +0100

On 11 December 2014 at 10:49, <u_AT_netbeisser.de> wrote:
> let's add PIE in config.mk:
>
>
> diff --git a/config.mk b/config.mk
> index bc3d80e..364a649 100644
> --- a/config.mk
> +++ b/config.mk
> _AT_@ -21,7 +21,7 @@ LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS}
> # flags
> CPPFLAGS = -D_BSD_SOURCE -D_POSIX_C_SOURCE=2 -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
> #CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
> -CFLAGS = -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
> +CFLAGS = -DFORTIFY_SOURCE=2 -fstack-protector -fstack-protector-all -std=c99 -pedantic -Wall -Wno-deprecated-declarations -Os ${INCS} ${CPPFLAGS}
> LDFLAGS = -s ${LIBS}
>
> # Solaris

No, such stuff belongs to the system config and not to the config of
some particular tool.

BR,
Anselm
Received on Thu Dec 11 2014 - 12:53:58 CET

This archive was generated by hypermail 2.3.0 : Thu Dec 11 2014 - 13:00:10 CET