Subject: bin/2328: cc rejects the -R option that ld likes.
To: None <gnats-bugs@NetBSD.ORG>
From: matthew green <>
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
>Originator:     matthew green
bozotic softwar foundation
>Release:        <NetBSD-current source date>960330
System: NetBSD 1.1B NetBSD 1.1B (_splode_) #294: Sat Mar 30 02:04:22 EST 1996 sparc


	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.


	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


	make cc understand that -R is for ld, and that it should pass
	it on.