またまたmysql++3.0.9にハマる
AMD Opteronマシンでmysql++-3.0.9をiccでコンパイルしようとすると,こんなエラーで止まってしまいました.
ld: mysqlpp_mysql++.o: relocation R_X86_64_32 against 'a local symbol' can note used when making a shared object; recompile with -fPIC
mysqlpp_mysql++.o: could not read symbols: Bad value
そういや,コンパイルの途中で
icc: command line remark #10148: option '-K' not supported
って出ていました(以前からですが).
少し前のiccから-KPICはobsoleteで,-fPICを使うように書かれて,現在のicc 11では-KPICは廃止になっています.
で,configureの中で
if test "$INTECLL"="yes"; then
PIC_FLAG="-KPIC"
という行があったので,無理やり書き換えて
if test "$INTECLL"="yes"; then
PIC_FLAG="-fPIC"