Re: Getting to universal binaries for Darwin
| От | Peter Eisentraut |
|---|---|
| Тема | Re: Getting to universal binaries for Darwin |
| Дата | |
| Msg-id | 200807201050.37558.peter_e@gmx.net обсуждение исходный текст |
| Ответ на | Re: Getting to universal binaries for Darwin (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Getting to universal binaries for Darwin
|
| Список | pgsql-hackers |
Am Sunday, 20. July 2008 schrieb Tom Lane:
> * This disables AC_TRY_RUN tests, of course. The only adverse
> consequence I noticed was failure to recognize that
> -Wl,-dead_strip_dylibs is applicable, which is marginally annoying but
> hardly fatal.
>
> On the whole I still wouldn't trust cross-compiled configure results.
> Better to get your prototype pg_config.h from the real deal.
For example, I'm a bit curious on the following aspect. This program should
fail to compile on 32-bit platforms but succeed on 64-bit:
#include <stddef.h>
struct s { char a; long b; };
int main(int argc, char *argv[])
{ int array[offsetof(struct s, b) - 5];
return 0;
}
What happens if you run gcc -arch i386 -arch ppp64 on it? Does it require
success on both output architectures?
В списке pgsql-hackers по дате отправления: