Package Details: dash-static-musl 0.5.12-1

Git Clone URL: https://aur.archlinux.org/dash-static-musl.git (read-only, click to copy)
Package Base: dash-static-musl
Description: A POSIX compliant shell that aims to be as small as possible, statically linked to musl libc
Upstream URL: http://gondor.apana.org.au/~herbert/dash/
Licenses: BSD
Conflicts: dash
Provides: dash
Submitter: WFCody
Maintainer: WFCody (jasonhansel)
Last Packager: WFCody
Votes: 8
Popularity: 0.000000
First Submitted: 2015-10-18 06:06 (UTC)
Last Updated: 2023-05-30 14:32 (UTC)

Dependencies (1)

Required by (24)

Sources (1)

Latest Comments

kseistrup commented on 2022-01-14 09:05 (UTC)

I can confirm that --enable-static works and produces a statically linked binary.

And I recommend that the CFLAGS variable isn't completely overruled. Instead the -Os should be appended:

export CC='musl-gcc'
export CFLAGS="$CFLAGS -Os"  # please observe double-quotes
./configure \
  --enable-static \
    ⋮

Cheers.

WFCody commented on 2022-01-14 08:53 (UTC)

Hi climbTheStrairs. The source used is the same as in the Arch Linux dash package so that is why that source is selected.

For building, I probably had a reason for doing what I did back then. I will try to adjust the PKGBUILD sometime soon when I got time.

climbTheStairs commented on 2022-01-14 08:40 (UTC)

Perhaps use ./configure --enable-static instead of export CC='musl-gcc -static' and export CFLAGS='-Os -static' (and why the flag used twice?)?

Also, is there a reason that this source is used instead of the one from the upstream URL (http://gondor.apana.org.au/~herbert/dash/files/)?

kseistrup commented on 2021-03-25 12:58 (UTC)

Please update to 0.5.11.3.

ryosei commented on 2021-02-28 22:09 (UTC)

Version 0.5.11.3 is out since 2020-12-23 07:58:12. The same PKGBUILD but updating version and checksums work alright.

WFCody commented on 2017-08-06 16:37 (UTC)

Indeed I never had this problem before with this package... and I had built 0.5.9.1 locally. Updated with your hack for now.

jasonhansel commented on 2017-08-06 15:23 (UTC)

Gives an error for me; apparently it ignores 'CFLAGS' and tries to statically link glibc. I fixed it with CC='musl-gcc -static' but that's kind of a hack.