distro

small linux distro experiment
Log | Files | Refs

commit b13aa97df15f586a08ee88cddd190c3ceeb557e6
parent a3f0c55e8df2af76a4fa254ee5ce5ee4bd79286e
Author: z3bra <contactatz3bradotorg>
Date:   Tue, 30 Oct 2018 08:26:04 +0100

mk: new port

Diffstat:
pkg/mk/mkfile | 8++++++++
pkg/mk/patches/makefile-ldflags.diff | 10++++++++++
2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/pkg/mk/mkfile b/pkg/mk/mkfile @@ -0,0 +1,8 @@ +pkg = mk +ver = 0.1 +url = http://swtch.com/plan9port/unix/$pkg.tgz + +<../build.mk + +CFLAGS = $CFLAGS -c -I. $LDFLAGS +MAKEFLAGS = PREFIX=`{pwd}/.rootfs diff --git a/pkg/mk/patches/makefile-ldflags.diff b/pkg/mk/patches/makefile-ldflags.diff @@ -0,0 +1,10 @@ +diff -urN a/Makefile b/Makefile +--- a/Makefile 2011-01-02 21:52:48.000000000 +0100 ++++ b/Makefile 2016-10-25 11:02:27.079660855 +0200 +@@ -125,5 +125,5 @@ + .phony: all clean nuke install tgz rpm ports + + $(TARG): $(OFILES) +- $(CC) -o $(TARG) $(OFILES) -L$(PREFIX)/lib -L../libutf -L../libfmt -L../libbio -L../libregexp -lregexp9 -lbio -lfmt -lutf ++ $(CC) -o $(TARG) $(OFILES) $(LDFLAGS) -L$(PREFIX)/lib -L../libutf -L../libfmt -L../libbio -L../libregexp -lregexp9 -lbio -lfmt -lutf +