25 lines
569 B
Bash
25 lines
569 B
Bash
![]() |
#!/bin/sh -e
|
||
|
|
||
|
CFLAGS="$SHARED_CFLAGS" \
|
||
|
CXXFLAGS="$SHARED_CXXFLAGS" \
|
||
|
LDFLAGS="$SHARED_LDFLAGS" \
|
||
|
./configure \
|
||
|
--disable-gtk \
|
||
|
--enable-shared \
|
||
|
--enable-static \
|
||
|
--build="$(uname -m)-lix-linux-musl" \
|
||
|
--host="$(uname -m)-lix-linux-musl" \
|
||
|
--prefix=
|
||
|
|
||
|
## explanation
|
||
|
#
|
||
|
# --disable-gtk: don't build anything that depends on gtk.
|
||
|
#
|
||
|
# --enable-static: use static linking instead.
|
||
|
#
|
||
|
# --build: make sure the build string gets set correctly.
|
||
|
#
|
||
|
# --host: make sure the host string gets set correctly.
|
||
|
#
|
||
|
# --prefix: respect the "no /usr/local" policy.
|