Bug report Title: Failed to link static openssl libraries (or non-PIC x86_64cpuid.s) OS: FC4 HARDWARE: AMD x86 64bit OPENSSL VERSION: 0.9.8e OPTIONS: CFLAGS="-fPIC -O2" ./config no-dso no-shared no-threads no-zlib -fPIC -O2 --prefix=/home/dmitri/php/install
Details: It worked just fine with all 0.9.7*. Since 0.9.8 an attempt to link against static openssl like below gcc -shared dbg.lo dbg_bp.lo dbg_cmd.lo dbg_net.lo dbg_ser.lo dbg_prof.lo dbg_sec.lo bg_logo.lo -L/home/dmitri/php/install/lib -lssl -lcrypto -Wl,-rpath -Wl,/home/dmitri/php/install/lib -Wl,-soname -Wl,dbg.so -o .libs/dbg.so returns with error: /usr/bin/ld: /home/dmitri/php/install/lib/libcrypto.a(x86_64cpuid.o): relocation R_X86_64_PC32 against `OPENSSL_cpuid_setup' can not be used when making a shared object; recompile with -fPIC WORKAROUND: no-asm configure argument remedies the problem completely, but I have some concerns regarding performance I'll get from the solution. Probably, there is should be a way to exclude non-PIC asms (namely x86_64cpuid) from the build if no-shared is used. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager [EMAIL PROTECTED]