Skip to contentSkip to conversation

Fix kvm-userspace configure script so that cc=gcc

PATCH In review Jerone Young 2 participants 3 messages Apr 30, 2008 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix kvm-userspace configure script so that cc=gcc

1 file changed, 1 insertion(+), 1 deletion(-)

configure | 2 +-

This fixes compilation for cross compilers as many do not create a ${cross_prefix}cc link. But the do a ${cross_prefix}gcc. This is what the kernel does so this will work for everyone. This breaks some who do not have a cc link (cross tools does not create), when I put a patch to remove libkvm dependence on test config.mak.

configure +1 -1
@@ -2,7 +2,7 @@
 
 prefix=/usr/local
 kerneldir=/lib/modules/$(uname -r)/build
-cc=cc
+cc=gcc
 ld=ld
 objcopy=objcopy
 want_module=1

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

#1 lore raw
Quoted 5 lines · On Wednesday 30 April 2008 15:53:47 Jerone Young wrote:
1 file changed, 1 insertion(+), 1 deletion(-)

configure | 2 +-

This fixes compilation for cross compilers as many do not create a

${cross_prefix}cc link. But the do a ${cross_prefix}gcc. This is what the kernel does so this will work for everyone. This breaks some who do not have a cc link (cross tools does not create), when I put a patch to remove libkvm dependence on test config.mak.

Quoted 7 lines

configure line 8

Quoted 8 lines
configure +1 -1
@@ -2,7 +2,7 @@
 
 prefix=/usr/local
 kerneldir=/lib/modules/$(uname -r)/build
-cc=cc
+cc=gcc
 ld=ld
 objcopy=objcopy
 want_module=1

To clarify: there is no such thing as "${cross_prefix}cc", so the configure script is currently broken for cross-compiling.

Signature · 8 lines
Hollis Blanchard
IBM Linux Technology Center

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
#2 lore raw
Quoted 10 lines · Hollis Blanchard
Quoted 5 lines · On Wednesday 30 April 2008 15:53:47 Jerone Young wrote:
1 file changed, 1 insertion(+), 1 deletion(-)

configure | 2 +-

This fixes compilation for cross compilers as many do not create a

${cross_prefix}cc link. But the do a ${cross_prefix}gcc. This is what the kernel does so this will work for everyone. This breaks some who do not have a cc link (cross tools does not create), when I put a patch to remove libkvm dependence on test config.mak.

The explanation came out awful :-) . But yes the issue is that by default cross tools does not create a ${cross_prefix}cc symlink. So you have to say gcc.

Quoted 8 lines
Quoted 8 lines
configure +0 -0
@@ -2,7 +2,7 @@
 
Quoted 11 lines

configure line 8

Quoted 7 lines
configure +1 -1
 prefix=/usr/local
 kerneldir=/lib/modules/$(uname -r)/build
-cc=cc
+cc=gcc
 ld=ld
 objcopy=objcopy
 want_module=1

To clarify: there is no such thing as "${cross_prefix}cc", so the configure script is currently broken for cross-compiling.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone