This is an automated email from the git hooks/post-receive script.
firstyear pushed a change to branch master in repository 389-ds-base.
from 87609c0 Ticket 49474 - Improve GSSAPI testing capability new d1ef707 Ticket 49515 - cannot link, missing -fPIC
The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference.
Summary of changes: configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
This is an automated email from the git hooks/post-receive script.
firstyear pushed a commit to branch master in repository 389-ds-base.
commit d1ef7077894971ff1ca6065a231844faa7237292 Author: William Brown firstyear@redhat.com Date: Wed Jan 3 14:01:59 2018 +1000
Ticket 49515 - cannot link, missing -fPIC
Bug Description: When building the server with --disable-gcc-security, due to an issue in autotools linker flag emission on RPM based system, -fPIC is missing. --enable-gcc-security masks this by providing -specs that add -fPIC when required on the types.
This causes the build to fail in some conditions,
Fix Description: Detect and add the rpm cc specs if present on all builds.
https://pagure.io/389-ds-base/issue/49515
Author: wibrown
Review by: mreynolds (Thanks!) --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac index 3b348cd..ef58b29 100644 --- a/configure.ac +++ b/configure.ac @@ -163,8 +163,12 @@ AC_ARG_ENABLE(gcc-security, AS_HELP_STRING([--enable-gcc-security], [Enable gcc ) ], [ + # Without this, -fPIC doesn't work on generic fedora builds, --disable-gcc-sec. AC_MSG_RESULT(no) - gccsec_defs="" + AM_COND_IF([RPM_HARDEND_CC], + [ gccsec_defs="-specs=/usr/lib/rpm/redhat/redhat-hardened-cc1" ], + [ gccsec_defs="" ] + ) ]) AC_SUBST([gccsec_defs])
389-commits@lists.fedoraproject.org