4b999f1962
building defaults to off until clang is updated. current clang does not handle -shared, necessary to change the ld invocation to build shared libraries properly. a new clang should be installed and MKPIC defaults to no unless the newer clang is detected. changes: . mainly small imports of a Makefile or two and small fixes (turning things back on that were turned off in Makefiles) . e.g.: dynamic librefuse now depends on dynamic libpuffs, so libpuffs has to be built dynamically too and a make dependency barrier is needed in lib/Makefile . all library objects now have a PIC (for .so) and non-PIC version, so everything is built twice. . generate PIC versions of the compat (un-RENAMEd) jump files, include function type annotation in generated assembly . build progs with -static by default for now . also build ld.elf_so . also import NetBSD ldd
26 lines
557 B
Makefile
26 lines
557 B
Makefile
# $NetBSD: Makefile.inc,v 1.4 2009/12/15 04:06:43 mrg Exp $
|
|
|
|
WARNS?= 3 # XXX: -Wsign-compare issues ld.elf_so source
|
|
|
|
.if ${MACHINE_ARCH} == "sparc64"
|
|
MLIBDIR= sparc
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "x86_64"
|
|
MLIBDIR= i386
|
|
.endif
|
|
|
|
.if ${MACHINE_ARCH} == "powerpc64"
|
|
MLIBDIR= powerpc
|
|
.endif
|
|
|
|
# For now make "elf32" look for native (n32)
|
|
.if (${MACHINE_ARCH} == "mips64eb") || (${MACHINE_ARCH} == "mips64el")
|
|
MLIBDIR= 64
|
|
COMPAT_MLIBDIR= o32
|
|
CPPFLAGS+= -DLDD_ELF64
|
|
.endif
|
|
|
|
.if exists(${.CURDIR}/../../Makefile.inc)
|
|
.include "${.CURDIR}/../../Makefile.inc"
|
|
.endif
|