SLC4, linuxx8664gcc

Hi. I’m compiling ROOT with --enable-cern and have the following problem during compilation:

g++ -shared -Wl,-soname,libHbook.so -m64 -O2 -o lib/libHbook.so hbook/src/THbookBranch.o hbook/src/THbookFile.o hbook/src/THbookKey.o hbook/src/THbookTree.o hbook/src/G__Hbook.o hbook/src/hntvar2.o -L/usr/libexec/CERNLIB/pro/lib -L/usr/libexec/CERNLIB/pro/lib -lpacklib -lkernlib -lshift -lnsl /usr/lib/gcc/x86_64-redhat-linux/3.4.6/libfrtbegin.a /usr/lib/gcc/x86_64-redhat-linux/3.4.6/libg2c.so -lnsl
/usr/bin/ld: /usr/libexec/CERNLIB/pro/lib/libpacklib.a(hrendc.o): relocation R_X86_64_32S against `hcdirc_’ can not be used when making a shared object; recompile with -fPIC
/usr/libexec/CERNLIB/pro/lib/libpacklib.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [lib/libHbook.so] Error 1

Should I recompile CERNLIB to compile ROOT?

On 64 bit machines, archive libs like libPacklib.a must be compiled with -kPIC if you want
to link them from a C++ shared library.

Rene

[quote]On 64 bit machines, archive libs like libPacklib.a must be compiled with -kPIC if you want
to link them from a C++ shared library.

Rene[/quote]

Well, CERNLIB Install how to does not explain, how to specify KPIC option.
I have to call $CVSCOSRC/config/imake_boot to create makefile. But how to enable kPIC ?