|  | @@ -34,15 +34,14 @@ have defined any environment variables that override default optimizations,
 | 
	
		
			
				|  |  |  such as CFLAGS and CXXFLAGS, we recommend un-setting them when building
 | 
	
		
			
				|  |  |  Grub.</para>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -<para>First prepare Grub for compilation:</para>
 | 
	
		
			
				|  |  | +<para>This package also has issues with being compiled by GCC 3.4, which we
 | 
	
		
			
				|  |  | +fix by applying the following patch:</para>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -<screen><userinput>./configure --prefix=/usr</userinput></screen>
 | 
	
		
			
				|  |  | +<screen><userinput>patch -Np1 -i ../grub-&grub-version;-gcc34-1.patch</userinput></screen>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -<para>A few of the files comprising Grub have issues with optimizations done
 | 
	
		
			
				|  |  | -by GCC 3.4. Compile these few files with known-good optimizations:</para>
 | 
	
		
			
				|  |  | +<para>Prepare Grub for compilation:</para>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -<screen><userinput>make -C stage2 STAGE2_CFLAGS=-O2 \
 | 
	
		
			
				|  |  | -    pre_stage2_exec-builtins.o pre_stage2_exec-serial.o</userinput></screen>
 | 
	
		
			
				|  |  | +<screen><userinput>./configure --prefix=/usr</userinput></screen>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  <para>Now compile the rest of the package:</para>
 | 
	
		
			
				|  |  |  
 |