From 3e6aaa86f1292cc61403bfcf6fb41702ef5681a4 Mon Sep 17 00:00:00 2001 From: "Dale S. Rahn" Date: Fri, 8 Sep 2000 04:23:46 +0000 Subject: PowerPC does not need to build this -Wall, if other archs would not. --- libexec/ld.so/Makefile | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/libexec/ld.so/Makefile b/libexec/ld.so/Makefile index a9a38c3f23d..8d545561c85 100644 --- a/libexec/ld.so/Makefile +++ b/libexec/ld.so/Makefile @@ -1,9 +1,19 @@ -# $OpenBSD: Makefile,v 1.1 2000/06/13 03:33:55 rahnds Exp $ +# $OpenBSD: Makefile,v 1.2 2000/09/08 04:23:45 rahnds Exp $ +SUBDIR=libdl ldconfig +#CFLAGS = +.if (${MACHINE_ARCH} == "powerpc") +CFLAGS += -fpic -msoft-float +.endif CFLAGS += -I${.CURDIR} -DNO_UNDERSCORE -DVERBOSE_DLINKER \ -DUSE_CACHE -D__PIC__ -I${.CURDIR}/${MACHINE_ARCH} +#CFLAGS += -g +VPATH=${.CURDIR}/../../lib/libc/string:${.CURDIR}/../../sys/lib/libsa +NOMAN= SRCS= ldasm.S loader.c library.c resolve.c dlfcn.c dl_printf.c rtld_machine.c +SRCS+= sod.c strcmp.c strlen.c strncmp.c strsep.c strtol.c strdup.c strcpy.c +OBJS+= strchr.o PROG= ld.so MAN= ld.so.8 BINDIR=/usr/libexec @@ -11,10 +21,16 @@ INSTALL_STRIP= .PATH: ${.CURDIR}/${MACHINE_ARCH} -ELF_LDFLAGS=--shared # using GNU ld +.if (${MACHINE_ARCH} == "powerpc") +#ADDR=-Ttext 21860000 -Tdata 21863000 +ADDR=-Tdata 8000 +ELF_LDFLAGS=--shared -Bsymbolic ${ADDR} # using GNU ld +.else +ELF_LDFLAGS=--shared -Bsymbolic # using GNU ld +.endif $(PROG): $(LD) -x -e _dl_start $(ELF_LDFLAGS) -o $(PROG) $(OBJS) - .include +.include -- cgit v1.2.3