head	1.4;
access;
symbols
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.14
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.12
	perseant-exfatfs-base:1.4
	netbsd-8-3-RELEASE:1.1
	netbsd-9-4-RELEASE:1.4
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.10
	netbsd-10-base:1.4
	netbsd-9-3-RELEASE:1.4
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.8
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	netbsd-9-2-RELEASE:1.4
	cjep_staticlib_x:1.4.0.6
	cjep_staticlib_x-base:1.4
	netbsd-9-1-RELEASE:1.4
	phil-wifi-20200421:1.4
	phil-wifi-20200411:1.4
	is-mlppp:1.4.0.4
	is-mlppp-base:1.4
	phil-wifi-20200406:1.4
	netbsd-8-2-RELEASE:1.1
	netbsd-9-0-RELEASE:1.4
	netbsd-9-0-RC2:1.4
	netbsd-9-0-RC1:1.4
	phil-wifi-20191119:1.4
	netbsd-9:1.4.0.2
	netbsd-9-base:1.4
	phil-wifi-20190609:1.4
	netbsd-8-1-RELEASE:1.1
	netbsd-8-1-RC1:1.1
	pgoyette-compat-merge-20190127:1.1.48.1
	pgoyette-compat-20190127:1.2
	pgoyette-compat-20190118:1.2
	pgoyette-compat-1226:1.2
	pgoyette-compat-1126:1.2
	pgoyette-compat-1020:1.2
	pgoyette-compat-0930:1.2
	pgoyette-compat-0906:1.2
	netbsd-7-2-RELEASE:1.1
	pgoyette-compat-0728:1.2
	netbsd-8-0-RELEASE:1.1
	phil-wifi:1.2.0.2
	phil-wifi-base:1.2
	pgoyette-compat-0625:1.2
	netbsd-8-0-RC2:1.1
	pgoyette-compat-0521:1.1
	pgoyette-compat-0502:1.1
	pgoyette-compat-0422:1.1
	netbsd-8-0-RC1:1.1
	pgoyette-compat-0415:1.1
	pgoyette-compat-0407:1.1
	pgoyette-compat-0330:1.1
	pgoyette-compat-0322:1.1
	pgoyette-compat-0315:1.1
	netbsd-7-1-2-RELEASE:1.1
	pgoyette-compat:1.1.0.48
	pgoyette-compat-base:1.1
	netbsd-7-1-1-RELEASE:1.1
	matt-nb8-mediatek:1.1.0.46
	matt-nb8-mediatek-base:1.1
	perseant-stdc-iso10646:1.1.0.44
	perseant-stdc-iso10646-base:1.1
	netbsd-8:1.1.0.42
	netbsd-8-base:1.1
	prg-localcount2-base3:1.1
	prg-localcount2-base2:1.1
	prg-localcount2-base1:1.1
	prg-localcount2:1.1.0.40
	prg-localcount2-base:1.1
	pgoyette-localcount-20170426:1.1
	bouyer-socketcan-base1:1.1
	pgoyette-localcount-20170320:1.1
	netbsd-7-1:1.1.0.38
	netbsd-7-1-RELEASE:1.1
	netbsd-7-1-RC2:1.1
	netbsd-7-nhusb-base-20170116:1.1
	bouyer-socketcan:1.1.0.36
	bouyer-socketcan-base:1.1
	pgoyette-localcount-20170107:1.1
	netbsd-7-1-RC1:1.1
	pgoyette-localcount-20161104:1.1
	netbsd-7-0-2-RELEASE:1.1
	localcount-20160914:1.1
	netbsd-7-nhusb:1.1.0.34
	netbsd-7-nhusb-base:1.1
	pgoyette-localcount-20160806:1.1
	pgoyette-localcount-20160726:1.1
	pgoyette-localcount:1.1.0.32
	pgoyette-localcount-base:1.1
	netbsd-7-0-1-RELEASE:1.1
	netbsd-7-0:1.1.0.30
	netbsd-7-0-RELEASE:1.1
	netbsd-7-0-RC3:1.1
	netbsd-7-0-RC2:1.1
	netbsd-7-0-RC1:1.1
	netbsd-5-2-3-RELEASE:1.1.4.2
	netbsd-6-0-6-RELEASE:1.1
	netbsd-6-1-5-RELEASE:1.1
	netbsd-7:1.1.0.28
	netbsd-7-base:1.1
	yamt-pagecache-base9:1.1
	yamt-pagecache-tag8:1.1
	netbsd-6-1-4-RELEASE:1.1
	netbsd-6-0-5-RELEASE:1.1
	tls-earlyentropy:1.1.0.26
	tls-earlyentropy-base:1.1
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1
	riastradh-drm2-base3:1.1
	netbsd-6-1-3-RELEASE:1.1
	netbsd-6-0-4-RELEASE:1.1
	netbsd-5-2-2-RELEASE:1.1.4.2
	netbsd-6-1-2-RELEASE:1.1
	netbsd-6-0-3-RELEASE:1.1
	netbsd-5-2-1-RELEASE:1.1.4.2
	netbsd-6-1-1-RELEASE:1.1
	riastradh-drm2-base2:1.1
	riastradh-drm2-base1:1.1
	riastradh-drm2:1.1.0.20
	riastradh-drm2-base:1.1
	netbsd-6-1:1.1.0.24
	netbsd-6-0-2-RELEASE:1.1
	netbsd-6-1-RELEASE:1.1
	netbsd-6-1-RC4:1.1
	netbsd-6-1-RC3:1.1
	agc-symver:1.1.0.22
	agc-symver-base:1.1
	netbsd-6-1-RC2:1.1
	netbsd-6-1-RC1:1.1
	yamt-pagecache-base8:1.1
	netbsd-5-2:1.1.4.2.0.2
	netbsd-6-0-1-RELEASE:1.1
	yamt-pagecache-base7:1.1
	netbsd-5-2-RELEASE:1.1.4.2
	netbsd-5-2-RC1:1.1.4.2
	matt-nb6-plus-nbase:1.1
	yamt-pagecache-base6:1.1
	netbsd-6-0:1.1.0.18
	netbsd-6-0-RELEASE:1.1
	netbsd-6-0-RC2:1.1
	tls-maxphys:1.1.0.16
	tls-maxphys-base:1.1
	matt-nb6-plus:1.1.0.14
	matt-nb6-plus-base:1.1
	netbsd-6-0-RC1:1.1
	yamt-pagecache-base5:1.1
	yamt-pagecache-base4:1.1
	netbsd-6:1.1.0.12
	netbsd-6-base:1.1
	yamt-pagecache-base3:1.1
	yamt-pagecache-base2:1.1
	yamt-pagecache:1.1.0.10
	yamt-pagecache-base:1.1
	cherry-xenmp:1.1.0.8
	cherry-xenmp-base:1.1
	bouyer-quota2-nbase:1.1
	bouyer-quota2:1.1.0.6
	bouyer-quota2-base:1.1
	netbsd-5:1.1.0.4
	matt-mips64-premerge-20101231:1.1
	matt-nb5-mips64-premerge-20101231:1.1.2.2
	matt-nb5-mips64-k15:1.1.2.2
	matt-nb5-mips64:1.1.0.2
	matt-premerge-20091211:1.1;
locks; strict;
comment	@# @;


1.4
date	2019.01.27.05.15.42;	author kre;	state Exp;
branches;
next	1.3;
commitid	2Yrjt5zI1mIwDn9B;

1.3
date	2019.01.27.02.08.51;	author pgoyette;	state Exp;
branches;
next	1.2;
commitid	ipPva1Pj3xTcBm9B;

1.2
date	2018.06.21.10.41.46;	author kamil;	state Exp;
branches
	1.2.2.1;
next	1.1;
commitid	h2CgzPOQYpwwu8HA;

1.1
date	2009.12.13.08.50.56;	author mrg;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.48.1;
next	;

1.2.2.1
date	2019.06.10.22.10.21;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.1.2.1
date	2009.12.13.08.50.56;	author mrg;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2009.12.23.03.14.47;	author mrg;	state Exp;
branches;
next	;

1.1.4.1
date	2009.12.13.08.50.56;	author riz;	state dead;
branches;
next	1.1.4.2;

1.1.4.2
date	2011.01.06.05.20.26;	author riz;	state Exp;
branches;
next	;

1.1.48.1
date	2018.06.25.07.26.10;	author pgoyette;	state Exp;
branches;
next	;
commitid	8PtAu9af7VvhiDHA;


desc
@@


1.4
log
@
Fix merge botch
@
text
@#	$NetBSD: Makefile,v 1.3 2019/01/27 02:08:51 pgoyette Exp $

NOSANITIZER=		# defined

.include <bsd.own.mk>
.include <bsd.init.mk>

CPPFLAGS+=	-DELFSIZE=32 -DELF32_COMPAT
LIB=	ldd_elf32_compat

# XXX Force one member
SRCS=	dummy.c

LIBISPRIVATE=	yes
.PATH: ${.CURDIR}/..

.ifdef COMPAT_MLIBDIR
MLIBDIR=	${COMPAT_MLIBDIR}
CPPFLAGS+=	-DRTLD_ARCH_SUBDIR=\"${MLIBDIR}\"
.endif

.ifdef MLIBDIR
.include "../Makefile.elf"
.endif

.include <bsd.lib.mk>
@


1.3
log
@Merge the [pgoyette-compat] branch
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.2 2018/06/21 10:41:46 kamil Exp $

NOSANITIZER=		# defined
@


1.2
log
@Disable SANITIZER for ldd(1)

These utilities (elf32, elf32_compat, elf64, liblldb) share code with the
ELF dynamic loader that is not being sanitized and its symbols are
installed into sanitized programs (in particular __tls_get_addr()).

Additionally libldd is used in rescue that is not expected to be sanitized
as of today.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.1 2009/12/13 08:50:56 mrg Exp $
@


1.2.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2019/01/27 05:15:42 kre Exp $
@


1.1
log
@- adjust the logic for compat ldd: add an elf32_compat module and arrange
  for mips64 to build this with MLIBDIR set to o32
- make mips64 ldd call elf32_compat_ldd as well
- make mips64 elf64 set MLIBDIR to 64
- don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
  soon anyway)

tested on amd64 and sparc64, and an earlier version tested on mips64.
@
text
@d1 3
a3 1
#	$NetBSD: Makefile,v 1.6 2009/02/14 13:56:41 abs Exp $
@


1.1.48.1
log
@Sync with HEAD
@
text
@d1 1
a1 3
#	$NetBSD: Makefile,v 1.2 2018/06/21 10:41:46 kamil Exp $

NOSANITIZER=		# defined
@


1.1.4.1
log
@file Makefile was added on branch netbsd-5 on 2011-01-06 05:20:26 +0000
@
text
@d1 24
@


1.1.4.2
log
@Apply patch (requested by mrg in ticket #1499):

src/compat version 2.  this allows building any number of alternate
library / program target ABIs.  rather than duplicating the list of
subdirs and Makefiles to build, it re-traverses the necessary ones.
details:
- add support for MAKEDIRTARGETENV to share/mk
- renames LD32DIR to MLIBDIR
- fixes library builds for some subdirs (more was built than needed)
- fixes /bin & /sbin apps in compat mode
- reduces complexity in src/compat and the rest of the tree
- updates ldd netbsd32 support
@
text
@a0 24
#	$NetBSD: Makefile,v 1.1 2009/12/13 08:50:56 mrg Exp $

.include <bsd.own.mk>
.include <bsd.init.mk>

CPPFLAGS+=	-DELFSIZE=32 -DELF32_COMPAT
LIB=	ldd_elf32_compat

# XXX Force one member
SRCS=	dummy.c

LIBISPRIVATE=	yes
.PATH: ${.CURDIR}/..

.ifdef COMPAT_MLIBDIR
MLIBDIR=	${COMPAT_MLIBDIR}
CPPFLAGS+=	-DRTLD_ARCH_SUBDIR=\"${MLIBDIR}\"
.endif

.ifdef MLIBDIR
.include "../Makefile.elf"
.endif

.include <bsd.lib.mk>
@


1.1.2.1
log
@file Makefile was added on branch matt-nb5-mips64 on 2009-12-23 03:14:47 +0000
@
text
@d1 24
@


1.1.2.2
log
@pull across from -current:
> Log Message:
> - adjust the logic for compat ldd: add an elf32_compat module and arrange
>   for mips64 to build this with MLIBDIR set to o32
> - make mips64 ldd call elf32_compat_ldd as well
> - make mips64 elf64 set MLIBDIR to 64
> - don't need ld.elf_so's Makefile.ld32 files anymore (they are going away
>   soon anyway)
>
> tested on amd64 and sparc64, and an earlier version tested on mips64.

> Log Message:
> make this actually build on mips64.
@
text
@a0 24
#	$NetBSD: Makefile,v 1.1 2009/12/13 08:50:56 mrg Exp $

.include <bsd.own.mk>
.include <bsd.init.mk>

CPPFLAGS+=	-DELFSIZE=32 -DELF32_COMPAT
LIB=	ldd_elf32_compat

# XXX Force one member
SRCS=	dummy.c

LIBISPRIVATE=	yes
.PATH: ${.CURDIR}/..

.ifdef COMPAT_MLIBDIR
MLIBDIR=	${COMPAT_MLIBDIR}
CPPFLAGS+=	-DRTLD_ARCH_SUBDIR=\"${MLIBDIR}\"
.endif

.ifdef MLIBDIR
.include "../Makefile.elf"
.endif

.include <bsd.lib.mk>
@


