[systemd-devel] [PATCH] build-sys: use -fno-semantic-interposition if available

Cristian Rodríguez crrodriguez at opensuse.org
Sun Jan 25 13:46:12 PST 2015


GCC5 introduces -fno-semantic-interposition allowing
better code generation in shared libraries at the cost
of making interposition of exported symbols impossible
(i.e, a 3rd party shared library overriding sd_notify() will not work)
Using this particular feature with systemd is not supported
and crazy, so do not pay the cost of it.
---
 configure.ac | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure.ac b/configure.ac
index 12e4ab2..e4d7c05 100644
--- a/configure.ac
+++ b/configure.ac
@@ -199,6 +199,7 @@ CC_CHECK_FLAGS_APPEND([with_cflags], [CFLAGS], [\
         -fdata-sections \
         -fstack-protector \
         -fstack-protector-strong \
+        -fno-semantic-interposition \
         -fPIE \
         --param=ssp-buffer-size=4])
 
-- 
2.2.2



More information about the systemd-devel mailing list