add pkgsrc hooks for building pkgs w/nbsd_libc
Add two makefiles to manage compiling packages with NetBSD libc. * minix.libc.mk contains the proper CFLAGS/LDFLAGS * pkgsrchooks.mk contains the logic for setting the flags. * update bmake Several pkg-config files were added to help pkgsrc learn about the c, minlib, and compat_minix libraries.
This commit is contained in:
@@ -172,3 +172,7 @@ CSHLIBFLAGS+= -D_I18N_DYNAMIC
|
||||
# force the dynamic linker to initialize libc first
|
||||
SHLIB_SHFLAGS+= -Wl,-z,initfirst
|
||||
|
||||
.include <bsd.own.mk>
|
||||
SUBDIR+= pkgconfig
|
||||
.include <bsd.subdir.mk>
|
||||
|
||||
|
||||
9
lib/nbsd_libc/pkgconfig/Makefile
Normal file
9
lib/nbsd_libc/pkgconfig/Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
NOOBJ= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
FILES=libc.pc
|
||||
FILESDIR=/usr/netbsd/lib
|
||||
FILESMODE=444
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
5
lib/nbsd_libc/pkgconfig/libc.pc
Normal file
5
lib/nbsd_libc/pkgconfig/libc.pc
Normal file
@@ -0,0 +1,5 @@
|
||||
Name: c
|
||||
Description: NetBSD C Library
|
||||
Version: 1.0
|
||||
Libs: -nostdlib /usr/netbsd/lib/crt1.o /usr/netbsd/lib/crti.o /usr/netbsd/lib/crtn.o -L/usr/netbsd/lib -lc -L/usr/pkg/lib -lgcc -L/usr/netbsd/lib -lminlib -lcompat_minix
|
||||
Cflags: -nostdinc -D__NBSD_LIBC -isystem /usr/netbsd/include
|
||||
@@ -44,4 +44,8 @@ SRCS+= cuserid.c
|
||||
|
||||
.include "include/Makefile.inc"
|
||||
|
||||
.include <bsd.own.mk>
|
||||
SUBDIR+= pkgconfig
|
||||
.include <bsd.subdir.mk>
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
9
lib/nbsd_libcompat_minix/pkgconfig/Makefile
Normal file
9
lib/nbsd_libcompat_minix/pkgconfig/Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
NOOBJ= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
FILES=compat_minix.pc
|
||||
FILESDIR=/usr/netbsd/lib
|
||||
FILESMODE=444
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
5
lib/nbsd_libcompat_minix/pkgconfig/compat_minix.pc
Normal file
5
lib/nbsd_libcompat_minix/pkgconfig/compat_minix.pc
Normal file
@@ -0,0 +1,5 @@
|
||||
Name: compat_minix
|
||||
Description: Minix Compatibility Library
|
||||
Version: 1.0
|
||||
Libs: -L/usr/netbsd/lib -lcompat_minix
|
||||
Cflags: -I/usr/netbsd/include
|
||||
@@ -35,4 +35,8 @@ INCS+= tools.h
|
||||
|
||||
.include "${MACHINE}/Makefile.inc"
|
||||
|
||||
.include <bsd.own.mk>
|
||||
SUBDIR+= pkgconfig
|
||||
.include <bsd.subdir.mk>
|
||||
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
9
lib/nbsd_libminlib/pkgconfig/Makefile
Normal file
9
lib/nbsd_libminlib/pkgconfig/Makefile
Normal file
@@ -0,0 +1,9 @@
|
||||
NOOBJ= # defined
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
FILES=minlib.pc
|
||||
FILESDIR=/usr/netbsd/lib
|
||||
FILESMODE=444
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
6
lib/nbsd_libminlib/pkgconfig/minlib.pc
Normal file
6
lib/nbsd_libminlib/pkgconfig/minlib.pc
Normal file
@@ -0,0 +1,6 @@
|
||||
Name: minlib
|
||||
Description: Minix Compatibility Library
|
||||
Version: 1.0
|
||||
Libs: -L/usr/netbsd/lib -lminlib
|
||||
Cflags: -I/usr/netbsd/include
|
||||
|
||||
Reference in New Issue
Block a user