[patch 0/1] [libservicelog] Fixes to comply with hardened build flags used by ubuntu and debian
[email protected] Tue, 25 Mar 2014 14:07:27 +0100
| Newsgroups | gmane.linux.tools.diag.devel |
|---|---|
| Message-ID | <[email protected]> |
On Ubuntu and Debian, the hardened build passes the following flags to the compilation through env. variables. Hence several formatting strings are mandatory. Also for that to work, the Makefile needs to handle the env. variables. $ dpkg-buildflags CFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security CPPFLAGS=-D_FORTIFY_SOURCE=2 CXXFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security FFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4 GCJFLAGS=-g -O3 -fstack-protector --param=ssp-buffer-size=4 LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech