Bug#919136: openldap: restore separate compile and link flags for contrib modules

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Bug#919136: openldap: restore separate compile and link flags for contrib modules

Ryan Tandy-4
Source: openldap
Version: 2.4.47+dfsg-2
Severity: important

In 2.4.47+dfsg-2 I dropped most of the patches to the contrib makefiles.
Instead I override the provided OPT variable with CFLAGS, CPPFLAGS, and
LDFLAGS concatenated.

This is not really correct, but seemed to work in my tests.
Unfortunately it FTBFS on at least ia64 and x32. It looks like those
architectures use spec files to enable PIE support.

I'm talking to upstream about having these makefiles respect CFLAGS,
CPPFLAGS, and LDFLAGS. In the mean time, it's probably best to bring
back the makefile patches.

Reply | Threaded
Open this post in threaded view
|

Bug#919136: openldap: restore separate compile and link flags for contrib modules

Ryan Tandy-4
For x32 at least, taking -specs=/usr/share/dpkg/pie-link.specs out of
the compile command line does seem to be the necessary fix.