Skip to content

Commit 648a2dd

Browse files
committed
Apply patches for OmniOS build
1 parent 121a78d commit 648a2dd

File tree

5 files changed

+91
-181
lines changed

5 files changed

+91
-181
lines changed

Diff for: build.sh

+6-2
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ done
1111
PNGDIR="${PWD}/libpng-1.5.4"
1212
PNGINC="${PNGDIR}/proto/usr/local/include"
1313
PNGLIB="${PNGDIR}/proto/usr/local/lib"
14+
PREFIX="${PREFIX:-/smartdc}"
1415

1516
if [[ ! -d ${PNGDIR} ]]; then
1617
(curl -k https://download.joyent.com/pub/kvm-cmd/libpng-1.5.4.tar.gz | \
@@ -39,12 +40,14 @@ CC="${CC:-${DESTDIR}/usr/bin/gcc}"
3940
XCFLAGS="-fno-builtin -I${PNGINC} -isystem ${DESTDIR}/usr/include -msave-args"
4041
XLDFLAGS="-nodefaultlibs -L${PNGLIB} -L${DESTDIR}/usr/lib/amd64 -L${DESTDIR}/lib/amd64"
4142
XLDFLAGS="${XLDFLAGS} -Wl,-zfatal-warnings -Wl,-zassert-deflib"
42-
XLDFLAGS="${XLDFLAGS} -lz -lm -lc -lvnd"
43+
XLDFLAGS="${XLDFLAGS} -lz -lm -lc"
4344
./configure \
4445
--cc=$CC \
4546
--extra-cflags="${XCFLAGS}" \
4647
--extra-ldflags="${XLDFLAGS}" \
47-
--prefix=/smartdc \
48+
--prefix=$PREFIX \
49+
--sysconfdir=/etc \
50+
--install=/usr/gnu/bin/install \
4851
--audio-card-list= \
4952
--audio-drv-list= \
5053
--disable-bluez \
@@ -75,6 +78,7 @@ fi
7578
#
7679
KERNEL_SOURCE="${KERNEL_SOURCE:-$(pwd)/../../illumos}"
7780
CTFBINDIR="$KERNEL_SOURCE"/usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386
81+
export CTFBINDIR
7882
export PATH="$PATH:$CTFBINDIR"
7983

8084
if [[ -z "$CONFIGURE_ONLY" ]]; then

Diff for: configure

+1-1
Original file line numberDiff line numberDiff line change
@@ -1796,7 +1796,7 @@ EOF
17961796
if has awk && has grep; then
17971797
kvmerr=`LANG=C $cc $QEMU_CFLAGS -o $TMPE $kvm_cflags $TMPC 2>&1 \
17981798
| grep "error: " \
1799-
| awk -F "error: " '{if (NR>1) printf(", "); printf("%s",$2);}'`
1799+
| gawk -F "error: " '{if (NR>1) printf(", "); printf("%s",$2);}'`
18001800
if test "$kvmerr" != "" ; then
18011801
echo -e "${kvmerr}\n\
18021802
NOTE: To enable KVM support, update your kernel to 2.6.29+ or install \

0 commit comments

Comments
 (0)