http://issues.apache.org/SpamAssassin/show_bug.cgi?id=5515
Summary: libsslspamc.so & libsslspamc.so can not build without -
fPIC
Product: Spamassassin
Version: 3.2.1
Platform: Other
OS/Version: FreeBSD
Status: NEW
Severity: normal
Priority: P5
Component: Building & Packaging
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Compiling for shareable libraries must produce position-independent
code (PIC) for a shareable library to build and work properly.
gcc compiler needs option -fPIC to request it to produce a PIC code.
On 32-bit Intel processors with OS in 32-bit mode one may get away
by forgetting the -fPIC, resulting .so just happens to work.
On 64-bit Intel platforms (like on a FreeBSD built in 64-bit mode)
and on other architectures one can not get away so easily,
so -fPIC should be specified every time that objects for a
shareable library are produced, regardless of platform and OS.
The attached patch adds -fPIC option to spamc/Makefile.in
when libsslspamc.so and libsslspamc.so are to be built,
avoiding ugly hacks that packagers would otherwise need
to apply.
Note that the issue is not specific to FreeBSD nor to AMD,
it is just that it was discovered there when building
for 64-bit Intel or 64-bit AMD platforms.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.