summaryrefslogtreecommitdiff
path: root/libexec/ld.elf_so/arch/powerpc/Makefile.inc
blob: 696e108cd1408b6fa1470fb4fb2531ef489c0c7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#	$NetBSD: Makefile.inc,v 1.17 2023/04/09 17:24:48 chs Exp $

SRCS+=		ppc_reloc.c
LDFLAGS+=	-Wl,-e,_rtld_start

CPPFLAGS+=	-fPIC
CPPFLAGS+=	-DRTLD_COMMON_CALL_IFUNC_RELA

.if ${LDELFSO_MACHINE_ARCH} == "powerpc64"
SRCS+=		rtld_start64.S
CPPFLAGS+=	-DELFSIZE=64
.else
SRCS+=		rtld_start.S
CPPFLAGS+=	-DELFSIZE=32
.endif