ports

zandra's ports tree
git clone git://zandra.org/ports
Log | Files | Refs | README | LICENSE

commit cb8bc6a4a79d65137a2b755961a795648a9ffca7
parent 05f19ab2d3a0a6341fe724c313ce26c9e8b72fe9
Author: darklands <darklands@zandra.xyz>
Date:   Sat, 25 Apr 2020 02:04:26 -0400

Fix compilation for sbase/ubase

Diffstat:
Asbase/config.mk | 12++++++++++++
Msbase/sbase.mk | 5+++--
Aubase/config.mk | 11+++++++++++
Mubase/ubase.mk | 3++-
4 files changed, 28 insertions(+), 3 deletions(-)

diff --git a/sbase/config.mk b/sbase/config.mk @@ -0,0 +1,12 @@ +# sbase version +VERSION = 0.0 + +# paths +PREFIX = / +MANPREFIX = $(PREFIX)/share/man + +# for NetBSD add -D_NETBSD_SOURCE +# -lrt might be needed on some systems +CPPFLAGS = -D_DEFAULT_SOURCE -D_BSD_SOURCE -D_XOPEN_SOURCE=700 -D_FILE_OFFSET_BITS=64 +CFLAGS = -std=c99 -Wall -pedantic +LDFLAGS = -s -static diff --git a/sbase/sbase.mk b/sbase/sbase.mk @@ -3,7 +3,8 @@ TARG = `ls *.c | sed 's/\.c//'` <$mkbuild/mk.common-noinst $TARG:QV: - CC="${CC} -static" make -j$nprocs PREFIX="$PREFIX" DESTDIR="$ROOT" + cp -f ../config.mk config.mk + make -j$nprocs DESTDIR="$ROOT" install:QV: - make -j$nprocs PREFIX="$PREFIX" DESTDIR="$ROOT" install + make -j$nprocs DESTDIR="$ROOT" install diff --git a/ubase/config.mk b/ubase/config.mk @@ -0,0 +1,11 @@ +# ubase version +VERSION = 0.1 + +# paths +PREFIX = / +MANPREFIX = $(PREFIX)/share/man + +CPPFLAGS = -D_FILE_OFFSET_BITS=64 -D_XOPEN_SOURCE=700 -D_GNU_SOURCE +CFLAGS = -std=c99 -Wall -Wextra +LDLIBS = -lcrypt +LDFLAGS = -s -static diff --git a/ubase/ubase.mk b/ubase/ubase.mk @@ -3,7 +3,8 @@ TARG = `ls *.c | sed 's/\.c//'` <$mkbuild/mk.common-noinst $TARG:QV: - CC="${CC} -static" make -j$nprocs PREFIX="$PREFIX" DESTDIR="$ROOT" + cp ../config.mk config.mk + make -j$nprocs DESTDIR="$ROOT" install:QV: make -j$nprocs PREFIX="$PREFIX" DESTDIR="$ROOT" install