Skip to content

Commit ee80142

Browse files
committed
➕ add: missing build script file zimg.sh
1 parent 164f260 commit ee80142

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

build/zimg.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
CONF_FLAGS=(
6+
--prefix=$INSTALL_DIR # lib installation directory
7+
--host=x86_64-linux-gnu # use i686 linux host
8+
--disable-shared # build static library
9+
--enable-static # enable static library
10+
--disable-dependency-tracking # speed up one-time build
11+
--disable-simd # disable simd optimization
12+
)
13+
14+
emconfigure ./autogen.sh
15+
16+
emconfigure ./configure "${CONF_FLAGS[@]}"
17+
emmake make install -j

0 commit comments

Comments
 (0)