AMD64 -fPIC Patch 2005032221372300920

"Bernhard C. Schrenk" <[email protected]>
Newsgroups gmane.linux.distributions.rock.devel
Message-ID <[email protected]>
Hi,

The new -fPIC patch does work as long as the package generates a .so
(tested with minimal-kde-desktop crystal build), but there are also
problems with packages generating a .a only. Example:

libcrack.a provided by cracklib is compiled without -fPIC (after reverting
my "-fPIC by hand" patch of course).
pam_cracklib.so provided by pam tries to link with libcrack.a -> Fails,
because libcrack.a(fascist.o) was compiled without -fPIC.

I think of 2 possible solutions:
1) Enabling forcefpic also for packages, which provide .a files.
2) Enabling forcefpic for packages, which provide .a files and are
dependencies for packages providing .so files.

I prefer solution 1, because solution 2 could prevent compiling programs
not known to the rock build system or added after building the package
providing the .a file.

Regards,
Bernhard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.