diff options
author | Karel Zak | 2013-08-27 10:02:04 +0200 |
---|---|---|
committer | Karel Zak | 2013-08-27 11:49:01 +0200 |
commit | 03d00d495f3b505d9cae967c629fb38aca301e01 (patch) | |
tree | 3433ad37aa6b694d4933668b1cdb9c602571be6a /Documentation/howto-compilation.txt | |
parent | tests: minor changes to make tests more portable (diff) | |
download | kernel-qcow2-util-linux-03d00d495f3b505d9cae967c629fb38aca301e01.tar.gz kernel-qcow2-util-linux-03d00d495f3b505d9cae967c629fb38aca301e01.tar.xz kernel-qcow2-util-linux-03d00d495f3b505d9cae967c629fb38aca301e01.zip |
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 <kzak@redhat.com>
Diffstat (limited to 'Documentation/howto-compilation.txt')
-rw-r--r-- | Documentation/howto-compilation.txt | 10 |
1 files changed, 5 insertions, 5 deletions
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. |