diff options
author | Alexey Neyman <stilor@att.net> | 2016-12-16 20:52:55 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-16 20:52:55 (GMT) |
commit | 400f9e097265e66113cb46fb8f903af4e491f306 (patch) | |
tree | 9d7499008dd3c2176cdb407a4bb1a0bc0d6c33e1 /scripts/build/companion_libs/210-expat.sh | |
parent | 7bea082b3ff791cd5e9da5b3c7f9c9b49bbd8f6f (diff) | |
parent | 3dbb576c1708c1683ef780a43dec31a220458f39 (diff) |
Merge pull request #506 from stilor/canadian-gettext-mingw32
Make companion libs static; fix gettext build on mingw
Diffstat (limited to 'scripts/build/companion_libs/210-expat.sh')
-rwxr-xr-x | scripts/build/companion_libs/210-expat.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/build/companion_libs/210-expat.sh b/scripts/build/companion_libs/210-expat.sh index 3a6deb5..4b21b59 100755 --- a/scripts/build/companion_libs/210-expat.sh +++ b/scripts/build/companion_libs/210-expat.sh @@ -31,7 +31,6 @@ do_expat_for_host() { expat_opts+=( "prefix=${CT_HOST_COMPLIBS_DIR}" ) expat_opts+=( "cflags=${CT_CFLAGS_FOR_HOST}" ) expat_opts+=( "ldflags=${CT_LDFLAGS_FOR_HOST}" ) - expat_opts+=( "static_build=${CT_STATIC_TOOLCHAIN}" ) do_expat_backend "${expat_opts[@]}" @@ -59,7 +58,7 @@ do_expat_for_target() { esac expat_opts+=( "prefix=${prefix}" ) expat_opts+=( "destdir=${CT_SYSROOT_DIR}" ) - expat_opts+=( "static_build=y" ) + expat_opts+=( "shared=${CT_SHARED_LIBS}" ) do_expat_backend "${expat_opts[@]}" @@ -78,6 +77,7 @@ do_expat_backend() { local prefix local cflags local ldflags + local shared local arg local -a extra_config @@ -85,9 +85,8 @@ do_expat_backend() { eval "${arg// /\\ }" done - if [ "${static_build}" = "y" ]; then + if [ "${shared}" != "y" ]; then extra_config+=("--disable-shared") - extra_config+=("--enable-static") fi CT_DoLog EXTRA "Configuring expat" @@ -99,6 +98,7 @@ do_expat_backend() { --build=${CT_BUILD} \ --host=${host} \ --prefix="${prefix}" \ + --enable-static \ "${extra_config[@]}" CT_DoLog EXTRA "Building expat" |