summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.joyent2
-rwxr-xr-xbuild.sh1
2 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.joyent b/Makefile.joyent
index 46c4b1c..006f82c 100644
--- a/Makefile.joyent
+++ b/Makefile.joyent
@@ -113,7 +113,7 @@ install: world
clean:
gmake clean
- rm -f qemu.so
+ rm -f qemu.so config-host.mak
xref:
find . -type f -name '*.[ch]' > cscope.files
diff --git a/build.sh b/build.sh
index 6618a05..163d8b0 100755
--- a/build.sh
+++ b/build.sh
@@ -38,6 +38,7 @@ KVM_DIR="${KVM_DIR:-$(cd `pwd`/../kvm; pwd)}"
CC="${CC:-${DESTDIR}/usr/bin/gcc}"
XCFLAGS="-fno-builtin -I${PNGINC} -isystem ${DESTDIR}/usr/include"
XLDFLAGS="-nodefaultlibs -L${PNGLIB} -L${DESTDIR}/usr/lib -L${DESTDIR}/lib"
+XLDFLAGS="${XLDFLAGS} -Wl,-zfatal-warnings -Wl,-zassert-deflib"
XLDFLAGS="${XLDFLAGS} -lz -lm -lc"
./configure \
--cc=$CC \