Build universal binary on Mac OS X 10.6?
От | Israel Brewster |
---|---|
Тема | Build universal binary on Mac OS X 10.6? |
Дата | |
Msg-id | F49F97AC-7C93-46A0-8C21-7751AEC980CA@frontierflying.com обсуждение исходный текст |
Ответы |
Re: Build universal binary on Mac OS X 10.6?
Re: Build universal binary on Mac OS X 10.6? |
Список | pgsql-general |
I am trying to create a static, universal (x86 and ppc at least - 64 bit architectures are optional) build of the PostgreSQL libraries on a Mac OS X 10.6 machine. The command line I am using is as follows:
CFLAGS="-arch i386 -arch ppc -arch x86_64" ./configure --disable-shared
The configure runs fine, as does the build until it gets to the following error:
gcc -no-cpp-precomp -arch i386 -arch ppc -arch x86_64 -Wall -Wmissing-prototypes -Wpointer-arith -Wdeclaration-after-statement -Wendif-labels -fno-strict-aliasing -fwrapv -I../../../../src/include -c -o heaptuple.o heaptuple.c
heaptuple.c: In function 'heap_fill_tuple':
heaptuple.c:196: error: duplicate case value
heaptuple.c:196: error: previously used here
heaptuple.c: In function 'heap_fill_tuple':
heaptuple.c:196: error: duplicate case value
heaptuple.c:196: error: previously used here
lipo: can't figure out the architecture type of: /var/tmp//ccKn3btt.out
make[4]: *** [heaptuple.o] Error 1
make[3]: *** [common-recursive] Error 2
make[2]: *** [access-recursive] Error 2
make[1]: *** [all] Error 2
make: *** [all] Error 2
I have tried both with PostgreSQL version 8.4.1 and 8.3.8 with the same result. I really just need the library for my apps to link against, I don't care if the server or client programs compile. What am I doing wrong here? How can I get this to work? Thanks.
-----------------------------------------------
Israel Brewster
Computer Support Technician II
Frontier Flying Service Inc.
5245 Airport Industrial Rd
Fairbanks, AK 99709
(907) 450-7250 x293
-----------------------------------------------
Вложения
В списке pgsql-general по дате отправления: