]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cmake: Add -pie to CMAKE_EXE_LINKER_FLAGS 10755/head
authorTim Serong <tserong@suse.com>
Wed, 17 Aug 2016 11:46:40 +0000 (21:46 +1000)
committerTim Serong <tserong@suse.com>
Wed, 17 Aug 2016 12:27:19 +0000 (22:27 +1000)
commit9e705be686db61fa8344eaf8db50897e3f3ad41b
tree07418264b22b01d4f60016a0139aabfb1a1e4a2f
parent80d914fc1d30a06e9acf85efc21c00af4d652df9
cmake: Add -pie to CMAKE_EXE_LINKER_FLAGS

Without this, rpmlint (on openSUSE Tumbleweed) fails with:

ceph-radosgw.x86_64: E: non-position-independent-executable
(Badness: 10000) /usr/bin/radosgw
This executable must be position independent.  Check that it
is built with -fPIE/-fpie in compiler flags and -pie in linker
flags.

Signed-off-by: Tim Serong <tserong@suse.com>
src/CMakeLists.txt