Subject: Re: 'C compiler cannot create executables' on Darwin
To: David Hopper <DHOP@gesi.net>
From: Michal Pasternak <firstname.lastname@example.org>
Date: 12/22/2003 23:27:01
David Hopper [Mon, Dec 22, 2003 at 12:47:39PM -0800]:
> Hi all. Something is broken on this OS X pkgsrc installation
this could be important for pkgsrc on Darwin. Please read on.
As it came out after some googling and a short chat with David and
Alexander, the problem they have results because of passing malformed options
like (-Wl,,whatever) to Darwin's ld.
I am not quite sure if this is the same situation they occur, but
as it came out:
_OPSYS_RPATH_NAME= -L # darwin has no rpath, use -L instead
But, in turn in mk/buildlink2/gen-transforms.sh you have:
# no-rpath removes "-R*", "-Wl,-R", and "-Wl,-rpath,*"
# sanitize-rpath translates "-Wl,-R", and "-Wl,-rpath,*"
# to whatever is appropriate
See? There is _no_ option, that would translate -Wl,-L "to whatever is
appropriate" (I have no idea what does this mean) -- there is also no option
to remove -Wl,-L (and such situation occurs propably on Darwin).
I might be totally wrong here, but it would be really nice if someone could
provide patches for Darwin's setting of "-Wl,-L" for gen-transforms.sh, send
it to those two gentlemen and see if this will help them.
(no wonder it was not in gen-transforms.sh, Darwin is the only system, which
Michal Pasternak :: http://pasternak.w.lub.pl :: http://winsrc.sf.net