This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Adding -R or -rpath options to the specs file?


Hi all.

	I'd like to add options to the specs file so that g++
	will pass the -R /path/to/libstdc++.so to the linker.

	I'd like it to only do this for directory containing 
	libstdc++.so, and NOT for other -L/path options that
	the user might specify.

	I'm looking to do this for both gcc-2.8.1 and 2.95.3
	
	I tried looking at the specs file, but It wasn't clear
	what I should add, or where I should add it. The FAQ
	kind of answers where to put it, but I'm still at a
	loss for what I need to add. Where can I find docs on
	the syntax for the specs file? Is there some special
	syntax so that it will only apply to g++ and not gcc?

	Also I think I read that gcc-3.0 now has a shared
	libgcc.so - I think this means I'll need something
	similiar for it when I install 3.0??

	Thanks for your help.

		-Kyle



-- 
				   _
-------------------------------ooO( )Ooo-------------------------------
Kyle J. McDonald		 (o o)	       Systems Support Engineer
Sun Microsystems Inc.		 |||||			    
High End Server Engineering			  Kyle.McDonald@Sun.COM
1 Network Drive BURL03-403	 \\\//	        voice:   (781) 442-2184
Burlington, MA 01803		 (o o)            fax:   (781) 442-1646
-------------------------------ooO(_)Ooo-------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]