Cross compile for postgresql
各位前辈,我下载了个posetgresql想build后安装在powerpc的linux系统上,所以在i386的机器上用power pc的编译器编译postgresql,
修改了src/Makefile.global中的CC编译器的路径,但在build时候出了个错误:
make -C timezone all
make[2]: Entering directory `/home/yw/postgresql/postgresql-8.2.1/src/timezone'
/usr/bin/ld -r -o SUBSYS.o localtime.o strftime.o pgtz.o
/usr/bin/ld: localtime.o: Relocations in generic ELF (EM: 20)
localtime.o: could not read symbols: File in wrong format
make[2]: *** [SUBSYS.o] Error 1
make[2]: Leaving directory `/home/post/postgresql/postgresql-8.2.1/src/timezone'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/post/postgresql/postgresql-8.2.1/src'
make: *** [all] Error 2
这是怎么回事啊?
如果不这样搞,怎么能将postgresql编译后跑在powerpc的机器上,powerpc的机器没有任何的编译器。也没有下载到posergresql for powerpc的bin及rpm版本