summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Mustacchi <rm@joyent.com>2012-10-23 21:56:54 +0000
committerRobert Mustacchi <rm@joyent.com>2012-10-23 21:56:54 +0000
commit13dfaebd3210f7ec17f040db63ed2bc09ab7f6e6 (patch)
tree981009dfb5e2e6ddc14f15c13f4c1bb05d7be1a9
parent6d85df9c5991c26ead6195ef6eed31e604b14db5 (diff)
downloadillumos-kvm-cmd-13dfaebd3210f7ec17f040db63ed2bc09ab7f6e6.tar.gz
OS-1658 kvm-cmd should build with -zassert-deflib2012111520121101
-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 \