summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 && \