Subject: bin/2328: cc rejects the -R option that ld likes.
To: None <gnats-bugs@NetBSD.ORG>
From: matthew green <mrg@eterna.com.au>
List: netbsd-bugs
Date: 04/14/1996 19:09:51
>Number:         2328
>Category:       bin
>Synopsis:       cc rejects the -R option that ld likes.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Apr 14 05:35:11 1996
>Last-Modified:
>Originator:     matthew green
>Organization:
bozotic softwar foundation
>Release:        <NetBSD-current source date>960330
>Environment:
	
System: NetBSD splode.eterna.com.au 1.1B NetBSD 1.1B (_splode_) #294: Sat Mar 30 02:04:22 EST 1996 mrg@splode.eterna.com.au:/orb/q/build/src/sys/arch/sparc/compile/_splode_ sparc


>Description:

	our ld got a nifty -R flag some time ago.  unfortunately, the
	only way to use it from cc is with -Xlinker -R/foo/bar.  this
	is annoying an confusing.

>How-To-Repeat:

	1) try to use the -R flag to put a search path for shared libs
	into a binary.

	2) notice that cc rejects -R.

	3) grovel cc man page and learn to use -Xlinker -R/foo/bar
	instead.

>Fix:

	make cc understand that -R is for ld, and that it should pass
	it on.
>Audit-Trail:
>Unformatted: