Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/efi/boot1/Makefile
Show All 32 Lines | |||||
LDSCRIPT= ${.CURDIR}/../loader/arch/${MACHINE_CPUARCH}/ldscript.${MACHINE_CPUARCH} | LDSCRIPT= ${.CURDIR}/../loader/arch/${MACHINE_CPUARCH}/ldscript.${MACHINE_CPUARCH} | ||||
LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared | LDFLAGS= -Wl,-T${LDSCRIPT} -Wl,-Bsymbolic -shared | ||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | ||||
LDFLAGS+= -Wl,-znocombreloc | LDFLAGS+= -Wl,-znocombreloc | ||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "arm" | .if ${MACHINE_CPUARCH} == "arm" || ${MACHINE_CPUARCH} == "i386" | ||||
# | # | ||||
# Add libstand for the __aeabi_* functions used by the compiler | # Add libstand for the runtime functions used by the compiler - for example | ||||
# __aeabi_* (arm) or __divdi3 (i386). | |||||
# | # | ||||
DPADD+= ${LIBSTAND} | DPADD+= ${LIBSTAND} | ||||
LDADD+= -lstand | LDADD+= -lstand | ||||
.endif | .endif | ||||
${PROG}: ${LDSCRIPT} | ${PROG}: ${LDSCRIPT} | ||||
OBJCOPY?= objcopy | OBJCOPY?= objcopy | ||||
▲ Show 20 Lines • Show All 51 Lines • Show Last 20 Lines |