File tree 5 files changed +91
-181
lines changed
5 files changed +91
-181
lines changed Original file line number Diff line number Diff line change 11
11
PNGDIR=" ${PWD} /libpng-1.5.4"
12
12
PNGINC=" ${PNGDIR} /proto/usr/local/include"
13
13
PNGLIB=" ${PNGDIR} /proto/usr/local/lib"
14
+ PREFIX=" ${PREFIX:-/ smartdc} "
14
15
15
16
if [[ ! -d ${PNGDIR} ]]; then
16
17
(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}"
39
40
XCFLAGS=" -fno-builtin -I${PNGINC} -isystem ${DESTDIR} /usr/include -msave-args"
40
41
XLDFLAGS=" -nodefaultlibs -L${PNGLIB} -L${DESTDIR} /usr/lib/amd64 -L${DESTDIR} /lib/amd64"
41
42
XLDFLAGS=" ${XLDFLAGS} -Wl,-zfatal-warnings -Wl,-zassert-deflib"
42
- XLDFLAGS=" ${XLDFLAGS} -lz -lm -lc -lvnd "
43
+ XLDFLAGS=" ${XLDFLAGS} -lz -lm -lc"
43
44
./configure \
44
45
--cc=$CC \
45
46
--extra-cflags=" ${XCFLAGS} " \
46
47
--extra-ldflags=" ${XLDFLAGS} " \
47
- --prefix=/smartdc \
48
+ --prefix=$PREFIX \
49
+ --sysconfdir=/etc \
50
+ --install=/usr/gnu/bin/install \
48
51
--audio-card-list= \
49
52
--audio-drv-list= \
50
53
--disable-bluez \
75
78
#
76
79
KERNEL_SOURCE=" ${KERNEL_SOURCE:- $(pwd)/ ../ ../ illumos} "
77
80
CTFBINDIR=" $KERNEL_SOURCE " /usr/src/tools/proto/root_i386-nd/opt/onbld/bin/i386
81
+ export CTFBINDIR
78
82
export PATH=" $PATH :$CTFBINDIR "
79
83
80
84
if [[ -z " $CONFIGURE_ONLY " ]]; then
Original file line number Diff line number Diff line change @@ -1796,7 +1796,7 @@ EOF
1796
1796
if has awk && has grep; then
1797
1797
kvmerr=` LANG=C $cc $QEMU_CFLAGS -o $TMPE $kvm_cflags $TMPC 2>&1 \
1798
1798
| grep " error: " \
1799
- | awk -F " error: " ' {if (NR>1) printf(", "); printf("%s",$2);}' `
1799
+ | gawk -F " error: " ' {if (NR>1) printf(", "); printf("%s",$2);}' `
1800
1800
if test " $kvmerr " ! = " " ; then
1801
1801
echo -e " ${kvmerr} \n\
1802
1802
NOTE: To enable KVM support, update your kernel to 2.6.29+ or install \
You can’t perform that action at this time.
0 commit comments