freebsd-dev/gnu/usr.bin/binutils/ld/Makefile.ia64
David E. O'Brien 87120eee8e Support linking with -z combreloc (combine and sort reloc sections) and with
--shared -z combreloc (shared library, combine & sort relocs)

Submitted by:		peter
Bribed by:		peter
Fixes:			IA-64, Kaffe, and QT
Doesn't fix ports by:	kris
Tested on:		make(1) release w/docproj
Desired for:		5.0-DP#1
Approved by:		murray
Seconded by:		jhb
2002-03-13 18:26:59 +00:00

25 lines
812 B
Makefile

# $FreeBSD$
TARGET_TUPLE?= ia64-unknown-freebsd
.if ${TARGET_ARCH} == "ia64"
HOST= ${TARGET_TUPLE} # do what?? how does this work for a cross-build??
CFLAGS+= -DDEFAULT_EMULATION=\"elf64_ia64\"
CFLAGS+= -DTARGET=\"${TARGET_TUPLE}\"
_ia64_path= \"${TOOLS_PREFIX}/usr/lib\"
.else
_ia64_path= \"/usr/cross/ia64-freebsd/usr/lib\"
.endif
EMS+= ld_elf64_ia64_emulation
LDSCRIPTS+= elf64_ia64.x elf64_ia64.xbn elf64_ia64.xn elf64_ia64.xr \
elf64_ia64.xs elf64_ia64.xu elf64_ia64.xc elf64_ia64.xsc
SRCS+= eelf64_ia64.c
CLEANFILES+= eelf64_ia64.c
eelf64_ia64.c: emulparams/elf64_ia64.sh emultempl/elf32.em scripttempl/elf.sc \
genscripts.sh stringify.sed
sh ${.CURDIR}/genscripts.sh ${SRCDIR}/ld ${_ia64_path} \
${HOST} ${TARGET_TUPLE} ${TARGET_TUPLE} \
"elf64_ia64" "" elf64_ia64 "${TARGET_TUPLE}"