summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2012-03-06 23:45:11 +0000
committerRobert Mustacchi <rm@joyent.com>2012-03-06 23:45:11 +0000
commit099e212e968550ab97f7ba3431e55d9c16a0c78d (patch)
tree60cce91e31627b1dc9b619a86319bddf4136bd83
parentce49e6b3932f15d4fcd24eb7cd7e0379ea371583 (diff)
downloadillumos-kvm-cmd-099e212e968550ab97f7ba3431e55d9c16a0c78d.tar.gz
HVM-720 kvm-cmd should build with gcc 4.4.4
-rwxr-xr-xbuild.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/build.sh b/build.sh
index 3b89c3a..c5153a3 100755
--- a/build.sh
+++ b/build.sh
@@ -31,11 +31,11 @@ fi
echo "==> Running configure"
KVM_DIR="${KVM_DIR:-$(cd `pwd`/../kvm; pwd)}"
-CC="${CC:-/usr/sfw/bin/gcc}"
+CC="${CC:-/opt/gcc/4.4.4/bin/gcc}"
./configure \
- --cc=$CC \
- --extra-cflags="-I${PNGDIR}/proto/usr/local/include" \
- --extra-ldflags="-L${PNGDIR}/proto/usr/local/lib -lz -lm" \
+ --cc=$CC \
+ --extra-cflags="-fno-builtin -nodefaultlibs -I${PNGDIR}/proto/usr/local/include" \
+ --extra-ldflags="-L${PNGDIR}/proto/usr/local/lib -lz -lm -lc" \
--prefix=/smartdc \
--audio-card-list= \
--audio-drv-list= \