代码: 全选
CFLAGS="-m64 -O3 -fPIC" CXXFLAGS="-m64 -O3 -fPIC" ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=mysqlnd --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --enable-mbstring=all --with-mcrypt --enable-debug --with-openssl
代码: 全选
......
-L/usr/local/openssl/lib -L/usr/local/lib -lcrypt -lresolv -lcrypt -lrt /usr/local/lib/libmcrypt.so /usr/lib/libltdl.so -lssl -lcrypto -lm -ldl -lnsl -lcrypt /usr/lib/libxml2.so -lcrypt -m64 -Wl,-soname -Wl,libphp5.so -o .libs/libphp5.so
/usr/bin/ld: /usr/local/openssl/lib/libssl.a(s2_srvr.o): relocation R_X86_64_32 against `.data' can not be used when making a shared object; recompile with -fPIC
/usr/local/openssl/lib/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] 错误 1
万能的坛友们阿,谁有什么解决方法没?
附:openssl编译参数
版本:openssl-0.9.8l
参数:
代码: 全选
CFLAGS="-m64 -O3 -fPIC" CXXFLAGS=${CFLAGS} ./config --prefix=/usr/local/openssl/ no-shared no-dso