Fix: python bindings when building with PIE hardening
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 25 Oct 2017 20:30:31 +0000 (16:30 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 13 Nov 2017 23:26:39 +0000 (18:26 -0500)
commit9de34faace8ca957d6b71e392f7100690bdb9f7e
tree234e151e06cc7e47f77331e2790e9c22831440e5
parented093d0e58fc853923f227d20c89740a0977959b
Fix: python bindings when building with PIE hardening

Work around a bug/limitation in python distutils where object files are
built with -fPIC appended after the CFLAGS but the final shared object
is linked with -shared before the LDFLAGS which can then be overriden by
hardening flags and result in an invalid build.

The work around is to append -shared to the LDFLAGS making sure it's not
overriden.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
bindings/python/Makefile.am
This page took 0.023921 seconds and 4 git commands to generate.