Skip to contentSkip to conversation

Fix cross-compile

PATCH David Goulet 2 participants 3 messages Nov 7, 2012 3 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20121107201321.GA31570@Krystal

#1 lore raw

Merged.

Thanks!

Mathieu Desnoyers:

Quoted 20 lines

configure.ac should use --target, not --host to get the target info we want to compile for. --host is for the host that does the build.

---

configure.ac +1 -1
index a3120fc..49d324e 100644
@@ -313,7 +313,7 @@ AS_ECHO("$version_description")
 AS_ECHO()
 
 # Target architecture we're building for
-target_arch=$host_cpu
+target_arch=$target_cpu
 [
 for f in $CFLAGS; do
         if test $f = "-m32"; then

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw
Quoted 3 lines · * David Goulet ([email protected]) wrote:

Merged.

Thanks!

Following up our IRC discussion, this patch should be reverted. --host is appropriate for projects, --target should be used when building cross-compilers.

Thanks,

Mathieu

Quoted 22 lines

Mathieu Desnoyers:

Quoted 20 lines

configure.ac should use --target, not --host to get the target info we want to compile for. --host is for the host that does the build.

---

configure.ac +1 -1
index a3120fc..49d324e 100644
@@ -313,7 +313,7 @@ AS_ECHO("$version_description")
 AS_ECHO()
 
 # Target architecture we're building for
-target_arch=$host_cpu
+target_arch=$target_cpu
 [
 for f in $CFLAGS; do
         if test $f = "-m32"; then
Signature · 4 lines
Mathieu Desnoyers
Operating System Efficiency R&D Consultant
EfficiOS Inc.
http://www.efficios.com

A message that is not in the archive (sent off-list or not yet received): 20121107202818.GA31867@Krystal

#5 lore raw

Reverted!

Mathieu Desnoyers:

Quoted 36 lines · * David Goulet ([email protected]) wrote:
Quoted 3 lines

Merged.

Thanks!

Following up our IRC discussion, this patch should be reverted. --host is appropriate for projects, --target should be used when building cross-compilers.

Thanks,

Mathieu

Quoted 22 lines

Mathieu Desnoyers:

Quoted 20 lines

configure.ac should use --target, not --host to get the target info we want to compile for. --host is for the host that does the build.

---

configure.ac +1 -1
index a3120fc..49d324e 100644
@@ -313,7 +313,7 @@ AS_ECHO("$version_description")
 AS_ECHO()
 
 # Target architecture we're building for
-target_arch=$host_cpu
+target_arch=$target_cpu
 [
 for f in $CFLAGS; do
         if test $f = "-m32"; then