From 03d00d495f3b505d9cae967c629fb38aca301e01 Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Tue, 27 Aug 2013 10:02:04 +0200 Subject: build-sys: add CFLAGS and LDFLAGS for daemons and shared libs This is necessary for paranoid security guys who believe that things like "-Wl,-z,relro" or "-Wl,-z,bind_now" is a way how to make the world a safer place... Signed-off-by: Karel Zak --- Documentation/howto-compilation.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Documentation/howto-compilation.txt') diff --git a/Documentation/howto-compilation.txt b/Documentation/howto-compilation.txt index bebe0d257..4b392461d 100644 --- a/Documentation/howto-compilation.txt +++ b/Documentation/howto-compilation.txt @@ -27,12 +27,12 @@ Compiling The SUID_* feature is currently supported for chfn, chsh, newgrp, su, write, mount, and umount. - Preferred compilation options for developers, when - using gcc, are: + Use DAEMON_CFLAGS and DAEMON_LDFLAGS when you want to define + special compiler options for daemons; supported for uuidd. - export CFLAGS="-Wmissing-parameter-type -Wsign-compare - -Wtype-limits -Wuninitialized -Wunused-parameter - -Wunused-but-set-parameter -fno-common" + Use SOLIB_CFLAGS and SOLIB_LDFLAGS when you want to define + special compiler options for shared libraries; supported for + libmount, libblkid and libuuid. FIXME: add notes about klib and uClib. -- cgit v1.2.3-55-g7522