minix/share/mk/minix.bootprog.mk
Lionel Sambuc f14fb60209 Libraries updates and cleanup
* Updating common/lib
 * Updating lib/csu
 * Updating lib/libc
 * Updating libexec/ld.elf_so
 * Corrected test on __minix in featuretest to actually follow the
   meaning of the comment.
 * Cleaned up _REENTRANT-related defintions.
 * Disabled -D_REENTRANT for libfetch
 * Removing some unneeded __NBSD_LIBC defines and tests

Change-Id: Ic1394baef74d11b9f86b312f5ff4bbc3cbf72ce2
2013-01-14 11:36:26 +01:00

22 lines
484 B
Makefile

# MINIX-specific boot program options
.include <bsd.own.mk>
# LSC Static linking, order matters!
# 1. No default libs
LDADD+= -nodefaultlibs
# 2. Compiler-specific libs
.if !empty(CC:M*gcc)
LDADD+= -lgcc -lsys -lgcc
.elif !empty(CC:M*clang)
LDADD+= -L/usr/pkg/compiler-rt/lib -lCompilerRT-Generic -lsys -lCompilerRT-Generic
.endif
# 3. Minimal C library
LDADD+= -lminc
# Some define still needed, hopefully will go away soon
CPPFLAGS+= -D__NBSD_LIBC
.include <bsd.prog.mk>