| 
					
				 | 
			
			
				@@ -5,7 +5,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 This is the equivalent to make LDFLAGS=-static as we use with other 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 packages to compile them statically.</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<para><userinput>--prefix=/usr:</userinput> This is NOT a typo.  GCC hard 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<para><userinput>--prefix=/static:</userinput> This is NOT a typo.  GCC hard 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 codes some paths while compiling and so we need to pass /usr as the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 prefix during ./configure.  We pass the real install prefix during the 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 make install command later.</para> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -18,13 +18,8 @@ the --enable-languages parameter can be omitted.</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 <para><userinput>--enable-threads=posix:</userinput> This enables C++  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 exception handling for multithreaded code.</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<para><userinput>ln -sf ../usr/bin/cpp:</userinput> This 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-creates the $LFS/lib/cpp symlink. Some packages explicitly try to find 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-cpp in /lib.</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-<para><userinput>ln -sf ../bin/cpp:</userinput> This 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-creates the $LFS/usr/lib/cpp symlink as there are packages that expect 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-cpp to be in /usr/lib.</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+<para><userinput>ln -s gcc $LFS/static/bin/cc:</userinput> This 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+creates the $LFS/static/bin/gcc symlink which some packages need.</para> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </sect2> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |