minix/share/mk/minix.bootprog.mk
Lionel Sambuc f640210005 Removing obsolete _NBSD_LIBC define
Change-Id: Ia6ce84ccdf36cf6f64540b990baaa7d85c53533d
2013-02-26 09:44:24 +00:00

26 lines
552 B
Makefile

# MINIX-specific boot program options
.include <bsd.own.mk>
# LSC Static linking, order matters!
# We can't use --start-group/--end-group as they are not supported by our
# version of clang.
# 1. No default libs
LDADD+= -nodefaultlibs
# 2. Compiler-specific libs
.if !empty(CC:M*gcc)
.if (${MACHINE_ARCH} == "earm")
LDADD+= -lsys
.else
LDADD+= -lgcc -lsys -lgcc
.endif
.elif !empty(CC:M*clang)
LDADD+= -L/usr/pkg/compiler-rt/lib -lCompilerRT-Generic -lsys -lCompilerRT-Generic
.endif
# 3. Minimal C library
LDADD+= -lminc
.include <bsd.prog.mk>