Hi,
I'm trying to build enigmail from source on F7 x86_64 for SeaMonkey 1.1.6, following instructions given here
http://enigmail.mozdev.org/download/source.php
All goes well until running make, when it stops with
/usr/bin/ld: nsEnigModule.o: relocation R_X86_64_PC32 against `NS_NewGenericModule2(nsModuleInfo const*, nsIModule**)' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
gmake[2]: *** [libenigmime.so] Error 1
ld -v gives GNU ld version 2.17.50.0.12-4 20070128
So I built binutils 2.17 from a new source tarball using the following:
CC="gcc -fPIC" ./configure --prefix=/home/sjr/Desktop --enable-shared --enable-64-bit-bfd
CC="gcc -fPIC" make
make install
I installed them to my desktop to avoid actually replacing the default binutils, and then and then prepended my Desktop/bin directory to the PATH.
Now, make stops with
/home/sjr/Desktop/bin/ld: unrecognized option '--hash-style=gnu'
/home/sjr/Desktop/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
gmake[2]: *** [libenigmime.so] Error 1
Now what gives? I seem to recall hearing that gcc passes some argument containing --hash-style to ld. So, is there a way to make ld recognize this (because apparently the default ld from the F7 binutils does) and should that solve this? Thanks.