Re: Getting to universal binaries for Darwin - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: Getting to universal binaries for Darwin
Date
Msg-id 200807201050.37558.peter_e@gmx.net
Whole thread Raw
In response to Re: Getting to universal binaries for Darwin  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Getting to universal binaries for Darwin  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: .psqlrc output for \pset commands
Next
From: Tom Lane
Date:
Subject: Re: Getting to universal binaries for Darwin