mirror of
				https://github.com/alsa-project/alsa-lib.git
				synced 2025-11-03 09:01:52 -05:00 
			
		
		
		
	doc: fix cross-compiling example
Simplest way to configure cross-compilation with configure script is to pass '--host' option. Passing just '--target' doesn't work. Signed-off-by: Dmitry Voytik <voytikd@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
		
							parent
							
								
									b9f58dcc6f
								
							
						
					
					
						commit
						5f1960e3d8
					
				
					 1 changed files with 3 additions and 6 deletions
				
			
		
							
								
								
									
										9
									
								
								INSTALL
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								INSTALL
									
										
									
									
									
								
							| 
						 | 
					@ -78,16 +78,13 @@ When you would like to cross-compile ALSA library (e.g. compile on
 | 
				
			||||||
i686 host but for arm architecture) you will need to call ./configure
 | 
					i686 host but for arm architecture) you will need to call ./configure
 | 
				
			||||||
script with additional parameters:
 | 
					script with additional parameters:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CC=arm-linux-gcc ./configure --target=arm-linux
 | 
					CC=arm-linux-gcc ./configure --host=arm-linux
 | 
				
			||||||
 | 
					
 | 
				
			||||||
In this example host where the library is build is guessed (should be
 | 
					You can omit setting 'CC' variable and cross-compiler will be guessed too.
 | 
				
			||||||
given with --host=platform) and target for which is the library build is
 | 
					 | 
				
			||||||
Linux on ARM architecture.  You should omit setting 'CC' variable and
 | 
					 | 
				
			||||||
cross-compiler will be guessed too.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
So simplest version would be:
 | 
					So simplest version would be:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
./configure --target=arm-linux
 | 
					./configure --host=arm-linux
 | 
				
			||||||
 | 
					
 | 
				
			||||||
For platform names in the form cpu-vendor-os (or aliases for this)
 | 
					For platform names in the form cpu-vendor-os (or aliases for this)
 | 
				
			||||||
you should look in 'config.guess' script. Target and all paths
 | 
					you should look in 'config.guess' script. Target and all paths
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue