Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: Add -pie to CMAKE_EXE_LINKER_FLAGS #10755

Merged
merged 1 commit into from Aug 17, 2016
Merged

Conversation

tserong
Copy link
Contributor

@tserong tserong commented Aug 17, 2016

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

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>
@tchaikov tchaikov merged commit 810f660 into ceph:master Aug 17, 2016
@tchaikov
Copy link
Contributor

@wjwithagen clang also supports -pie right?

@tchaikov tchaikov self-assigned this Aug 17, 2016
@tserong tserong deleted the wip-cmake-use-pie branch August 17, 2016 14:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants