Skip to content

Commit

Permalink
Add coreutils
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Jan 26, 2023
1 parent a2a3040 commit c2986c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 3 deletions.
14 changes: 14 additions & 0 deletions pkgs/coreutils/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
VERSION ?= 9.1
NAME = coreutils
SOURCE = https://ftpmirror.gnu.org/coreutils/coreutils-$(VERSION).tar.xz

include $(shell git rev-parse --show-toplevel)/pkgs/build.mk

configure:
FORCE_UNSAFE_CONFIGURE=1 ./configure --prefix=/ --disable-rpath || (cat config.log ; exit 1)

build:
$(MAKE)

install:
$(MAKE) DESTDIR=$(DESTDIR) install
6 changes: 3 additions & 3 deletions scripts/sandbox
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Darwin)
;;
*)
# Not ideal, in that we still might end up with extra dependencies, but at least they will be static.
export CFLAGS="-static"
export CXXFLAGS="-static"
export LDFLAGS="-static"
#export CFLAGS="-static"
#export CXXFLAGS="-static"
#export LDFLAGS="-static"
exec "$@"
;;
esac

0 comments on commit c2986c6

Please sign in to comment.