Subject: Re: 'C compiler cannot create executables' on Darwin
To: grant beattie <grant@NetBSD.org>
From: Michal Pasternak <michal@pasternak.w.lub.pl>
List: tech-pkg
Date: 12/23/2003 00:16:43
grant beattie [Tue, Dec 23, 2003 at 11:00:20AM +1100]:
> I can't get this to fail for me on Darwin 6.8, but perhaps something
> changed/got broken in 7.0. does passing -L or -Wl,-L to either cc or
> ld really not work?
The linker says it got empty library argument. Because you can't parse it
via commandline, it is quite obvious that gcc passes just "-l" or similar to
ld. The only chance it got there is -Wl,-l, or -Wl,, or similar. Maybe
because -Wl,-R is not stripped on Darwin (just because it is -Wl,-L) -> then
only -R would be stripped... and here you are, -Wl, or -Wl,,
I'd go in this direction with examining this situation.
> I tried setting _OPSYS_RPATH_NAME=-R and the rpath arguments were
> stripped from the cc command-line. you should be able to just change
> this single line in defs.Darwin.mk to test it.
I'm curious, how will it work for 7.0
--
mp