Build gperf statically

Build both static and shared libraries for:
* libunistring
* libatomic_ops
* libffi
* gc
This commit is contained in:
Andrius Štikonas 2022-09-19 14:33:36 +01:00
parent ee853d91fe
commit e748d62a62
7 changed files with 15 additions and 18 deletions

View File

@ -48,25 +48,25 @@ f55c11b091361536774b436abe86b17f759cd7a66522cd20c7a2190da92db67a findutils-4.2.
33afd1c66c864b486df290e682883556787c61751b8c851deb2737f0b777ffd6 flex-2.5.33_0.tar.bz2
000147c1a33feff5c5b4cb10c2cf6c2b2f4ef92a90c9e659b25f1766a83d4afc flex-2.6.4_0.tar.bz2
92fe0ffd0971a40fd98c70b075d5bb12f2d8093ef8fb3333aac2b532bd53a591 gawk-3.0.4_0.tar.bz2
0a8d7c32e8a32c7db713cf9d4b75f6ea186771197a425f20334b80072710d896 gc-8.0.4_0.x86.xbps
7a35239a2ad2f39220daa888650dbc44ba4a5664856997d2afb6165d305a8f82 gc-8.0.4_0.x86.xbps
07715a0c8bc13b80fc10ede20573f92e933b8d3dc6a5c8700f4289965ea8ec74 gcc-4.0.4_0.tar.bz2
e7c678c71c51cd6e8ce6eae029503a661169e6994ba0f988ac15634254d1fadb gcc-4.0.4_1.tar.bz2
edbe2c9ad51858feffe869aae25aec9de99d85fc0566ec883354ddd9e9b5060c gcc-4.7.4_0.x86.xbps
f34c959abbf0119b76b58564786887d66e449914c48f4f74fed1cc392bdb7194 gettext-0.21_0.x86.xbps
fe16fb6021f1f4650c98f77261145f37732be0aee06e957b0bdb3b01beb593a8 gmp-6.2.1_0.tar.bz2
73742c85954e9899ef76385698b791664a542ab0b580ae2d789445c683af509b gperf-3.1_0.x86.xbps
8910194c89ee6613dd4bdb20b795299bc7b556365588327631edb86340691436 gperf-3.1_0.x86.xbps
390840f2bc9c2a3196c28e06f8650f408e33b5d4ffe5539e174682ed13960bc9 grep-2.4_0.tar.bz2
d10b24962b9d0a580f9db4816a44f31877048c7c9e4b2d5e3d99609e39a8c028 guile-3.0.7_0.x86.xbps
cb0c913185dbcead7b9657c847dfe88888b2ce565fc117f0c7abe6ff79eb8dd5 guile-3.0.7_0.x86.xbps
ec6b32cba3f49f860a3d9b97cea57931869c5849d8ca5ad0ea01dad45b9edb91 help2man-1.36.4_0.tar.bz2
2ef01fe7252be680382bee5df890ad3f6dae26744104ccdaa2d1236bc19ab44a kbd-1.15_0.tar.bz2
68c272b50a99e4d53cab57552337e7660020a47c06a0341efcdfa4f2441db187 kexec-tools-2.0.22_0.tar.bz2
4c0cc86a9855122a4b5c12bff6f6bbf524495910ec718ef339fbfe7076824950 libarchive-3.5.2_0.tar.bz2
c185d9cc55029fb2fd4f4897b6581c22f0957b57a4fff8f68591c068a4e16daa libatomic_ops-7.6.10_0.x86.xbps
bd17cec1e4d5eabaa474bbe671cc33af71dce8155206221a310a98bdc5f52fd3 libffi-3.3_0.x86.xbps
f31b3c1d1d359c145271b5dbda0d541121f508d3da8aaf11f345641c177329d9 libatomic_ops-7.6.10_0.x86.xbps
dfe5b63ff66a6c35f2de98a1430908687a23b22294202e8aa43d21f6de136a3a libffi-3.3_0.x86.xbps
5001f8fdbba0db0ecf60263bfea97ed4b9174d06a447e98bee220548f973756a libtool-1.4_0.tar.bz2
94d0f9d2f8fbc2b00fe4c0f479e5590fa70b7d856f0a643ad006787d963f99ee libtool-2.2.4_0.tar.bz2
374214711d42681d030d6faceba3198243ec22301d94212f7162bd4873b7ba27 libtool-2.4.7_0.tar.bz2
f4018015c72f4ed1e172a34db41e9547c389ed7caeeb7f379a081e0bf9ccac88 libunistring-0.9.10_0.x86.xbps
8f5b16e20c0ee82b15e4771194ec40ef89a76980b1486d0b31d6d0b5d507822a libunistring-0.9.10_0.x86.xbps
1d07aaf7049be45853fd409340cdb52bb3a1b6dfa4dbc8b69358c1ee966cd67f linux-4.9.10_0.tar.bz2
61507b58074a3742191b606f9415f79406e5daa693ab4ba4a4543897696628ea linux-headers-5.10.41_0.tar.bz2
5cda10550198e613c426e45c5fffe0f7e8761296e7339e9e9a1f9da995b4865a m4-1.4.7_0.tar.bz2
@ -96,7 +96,7 @@ db57c6ef39965f0562d2aefe3c06571df50ba1265446d97f2714d80518862cef tcc-0.9.27_1.t
e2014b844b1a79cda9142a38af0404efd242ae02f77aa286c968e4ad6ad87265 tcc-0.9.27_2.tar.bz2
96dc08f4d01eddc04af107ffd313617af3fc455af38a82b850c4aca08cbd7e84 texinfo-6.7_0.x86.xbps
bf4a6be34cda165e4c206e852ccc09387f5ae8ea7db6de2db01297cabfa1a486 util-linux-2.19.1_0.tar.bz2
0e7d6e99a30f42a55a81ffd43ccf686d0c52d1b125965dfbdbdd18cceccb0530 which-2.21_0.x86.xbps
7d130a092dc12dcd8fc0ecdbf42c84b64ec11c635b6c70e21bda1e722bf2ea0f which-2.21_0.x86.xbps
3f044d2aaa838c9df153d662f8e259c2393774d3d3a5e71e26b5d867dbb08107 xbps-0.59.1_0.tar.bz2
e900a8b70f49bfcbb7a48bd27e2de67c30454d693b6f35dcdfadd35570e98e69 xz-5.0.5_0.tar.bz2
bb1e34d0392fddf9718e025344af575c1c534fbc61a1e4476e0c7ae2614f57ca zlib-1.2.12_0.tar.bz2

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2021-2022 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
@ -13,6 +13,5 @@ src_configure() {
./configure \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--disable-shared \
CFLAGS='-D_GNU_SOURCE -DNO_GETCONTEXT -DSEARCH_FOR_DATA_START -DUSE_MMAP -DHAVE_DL_ITERATE_PHDR'
}

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2021-2022 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
@ -17,5 +17,5 @@ src_prepare() {
}
src_configure() {
./configure --prefix="${PREFIX}"
LDFLAGS="-static" ./configure --prefix="${PREFIX}"
}

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
@ -12,5 +12,5 @@ src_configure() {
./configure \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--disable-shared
--enable-shared
}

View File

@ -1,4 +1,4 @@
# SPDX-FileCopyrightText: 2021 Andrius Štikonas <andrius@stikonas.eu>
# SPDX-FileCopyrightText: 2022 Andrius Štikonas <andrius@stikonas.eu>
#
# SPDX-License-Identifier: GPL-3.0-or-later
@ -15,7 +15,6 @@ src_configure() {
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--build=i386-unknown-linux-musl \
--disable-shared \
--with-gcc-arch=generic \
--enable-pax_emutramp
}

View File

@ -19,6 +19,5 @@ src_prepare() {
src_configure() {
./configure \
--prefix="${PREFIX}" \
--libdir="${PREFIX}/lib/musl" \
--disable-shared
--libdir="${PREFIX}/lib/musl"
}

View File

@ -12,7 +12,7 @@ src_prepare() {
}
src_configure() {
CFLAGS="-static" ./configure --prefix="${PREFIX}"
LDFLAGS="-static" ./configure --prefix="${PREFIX}"
}
src_install() {