PATCH RFA: libstdc++ lives in src/.libs

Message ID
State New
Headers show

Commit Message

Ian Taylor Oct. 7, 2010, 11:54 p.m.
In the top level Makefile.def file, the lib_path of a target module
gives the directory where the library can be found at run time.  This is
used to set LD_LIBRARY_PATH (or equivalent) when bootstrapping.  The
value for libstdc++-v3 is .libs, but actually the library is built in
src/.libs.  This patch corrects this error.

Bootstrapped on x86_64-unknown-linux-gnu.  Passed the libstdc++-v3 and
g++ testsuites.

OK for mainline?


2010-10-07  Ian Lance Taylor  <>

	* Makefile.def (target_modules): Set lib_path to src/.libs for
	libstdc++-v3 module.
	* Makefile.tpl: Fix typo in TARGET_LIB_PATH comment.
	* Rebuild.


Index: Makefile.def
--- Makefile.def	(revision 165058)
+++ Makefile.def	(working copy)
@@ -149,7 +149,7 @@  host_modules= { module= lto-plugin; boot
 target_modules = { module= libstdc++-v3;
-		   lib_path=.libs;
+		   lib_path=src/.libs;
 		   raw_cxx=true; };
 target_modules = { module= libmudflap; lib_path=.libs; };
 target_modules = { module= libssp; lib_path=.libs; };
Index: Makefile.tpl
--- Makefile.tpl	(revision 165058)
+++ Makefile.tpl	(working copy)
@@ -513,7 +513,7 @@  all:
 # This is the list of directories that may be needed in RPATH_ENVVAR
-# so that prorgams built for the target machine work.
+# so that programs built for the target machine work.
 TARGET_LIB_PATH = [+ FOR target_modules +][+
   IF lib_path +]$(TARGET_LIB_PATH_[+module+])[+ ENDIF lib_path +][+
   ENDFOR target_modules +]$(HOST_LIB_PATH_gcc)