summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith M Wesolowski <wesolows@foobazco.org>2012-06-22 20:45:32 +0000
committerKeith M Wesolowski <wesolows@foobazco.org>2012-06-22 20:45:32 +0000
commitdf8e4784a27833c3e3e49a2d1729114232ef8eea (patch)
tree61b60816993e20c92cb18e0711cf01f14d7e2e66
parent093720c53f2c96581989709434d640bc174aa5bb (diff)
downloadillumos-kvm-cmd-df8e4784a27833c3e3e49a2d1729114232ef8eea.tar.gz
OS-1335 kvm-cmd libpng build needs to learn to be 64-bit20120726201207122012062620120528
-rwxr-xr-xbuild.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 827c29f..128d1d7 100755
--- a/build.sh
+++ b/build.sh
@@ -24,7 +24,8 @@ fi
if [[ ! -e ${PNGLIB}/libpng.a ]]; then
(cd ${PNGDIR} && \
- LDFLAGS="-m64 -L${DESTDIR}/usr/lib -L${DESTDIR}/lib" \
+ CC="${CC:-${DESTDIR}/usr/bin/gcc}" \
+ LDFLAGS="-m64 -L${DESTDIR}/usr/lib/amd64 -L${DESTDIR}/lib/amd64" \
CPPFLAGS="-isystem ${DESTDIR}/usr/include" \
CFLAGS="-m64" ./configure --disable-shared && \
make && \