Skip to contentSkip to conversation

doc: fix cross-compiling example

PATCH Applied Dmitry Voytik 2 participants 2 messages Aug 22, 2014 – Aug 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 INSTALL |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
INSTALL +3 -6
index 91a8648..47086e3 100644
@@ -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
 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
-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.
+You can omit setting 'CC' variable and cross-compiler will be guessed too.
 
 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)
 you should look in 'config.guess' script. Target and all paths
Signature · 1 line
1.7.9.5
Applied
#1 lore raw

At Fri, 22 Aug 2014 14:17:10 +0400,

Quoted 6 lines · Dmitry Voytik

Simplest way to configure cross-compilation with configure script is to pass '--host' option.
Passing just '--target' doesn't work.

Applied, thanks.

Takashi

Quoted 36 lines
---
 INSTALL |    9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)
INSTALL +3 -6
index 91a8648..47086e3 100644
@@ -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
 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
-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.
+You can omit setting 'CC' variable and cross-compiler will be guessed too.
 
 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)
 you should look in 'config.guess' script. Target and all paths
Signature · 6 lines
1.7.9.5

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel