Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: crossbuild of -current amd64 from Darwin9.3 failed



On Sat, Jun 28, 2008 at 01:44:37AM +0200, Quentin Garnier wrote:
  | I've tracked this down to libiberty, which the tools version of
  | mdsetimage is linked with.  It includes a GNU implementation of getopt,
  | and apparently the linker on Mac OS X get confused using optind and
  | optarg from one implementation and getopt from the other (the other
  | implementation being the libc).  Of course that leads to interesting
  | results.

A workaround for this may be to link on OS X using -search_paths_first.
I.e., LDFLAGS="$LDFLAGS -Wl,-search_paths_first"

Attachment: pgpGH7GObLW6E.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index