diff options
author | dfr <dfr@FreeBSD.org> | 1998-09-04 19:03:57 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1998-09-04 19:03:57 +0000 |
commit | b5ab30c0dc5fcbceebb8fe7939b9b22b365dbb81 (patch) | |
tree | b5d0a554c070d669d34d1dd16aedbdc80ac19468 /libexec/rtld-elf/Makefile | |
parent | cc6d00dd2e04653dd42a1e017648ef5a6865205e (diff) | |
download | FreeBSD-src-b5ab30c0dc5fcbceebb8fe7939b9b22b365dbb81.zip FreeBSD-src-b5ab30c0dc5fcbceebb8fe7939b9b22b365dbb81.tar.gz |
Add alpha support.
Submitted by: John Birrell <jb@cimlogic.com.au> (with extra hacks by me)
Obtained from: Probably NetBSD
Diffstat (limited to 'libexec/rtld-elf/Makefile')
-rw-r--r-- | libexec/rtld-elf/Makefile | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/libexec/rtld-elf/Makefile b/libexec/rtld-elf/Makefile index f206711..e565161 100644 --- a/libexec/rtld-elf/Makefile +++ b/libexec/rtld-elf/Makefile @@ -1,17 +1,25 @@ # -# $Id: Makefile,v 1.2 1998/04/30 07:47:58 dfr Exp $ +# $Id: Makefile,v 1.3 1998/08/17 04:59:15 jdp Exp $ # PROG= ld-elf.so.1 -SRCS= rtld_start.S rtld.c map_object.c malloc.c xmalloc.c debug.c +SRCS= rtld_start.S rtld.c map_object.c malloc.c xmalloc.c debug.c \ + reloc.c NOMAN= true -CFLAGS+= -elf -fpic -DFREEBSD_ELF -CFLAGS+= -Wall -LDFLAGS+= -elf -nostdlib -Wl,-Bshareable,-Bsymbolic +CFLAGS+= -fpic -Wall -DFREEBSD_ELF -I${.CURDIR} LDADD+= -lc_pic + +.if ${MACHINE_ARCH} == "alpha" +CFLAGS+= -mno-fp-regs +LDFLAGS+= -nostdlib -Wl,-Bshareable,-Bsymbolic -e .rtld_start +.elif ${MACHINE_ARCH} == "i386" +CFLAGS+= -elf +LDFLAGS+= -elf -nostdlib -Wl,-Bshareable,-Bsymbolic +.endif + # Atomic installation with "-C" is very important for this program. INSTALLFLAGS+= -C -.PATH: ${.CURDIR}/${MACHINE} +.PATH: ${.CURDIR}/${MACHINE_ARCH} .include <bsd.prog.mk> |