Changeset View
Changeset View
Standalone View
Standalone View
head/libexec/rtld-elf/Makefile
Show First 20 Lines • Show All 45 Lines • ▼ Show 20 Lines | |||||
CFLAGS+= -DPIC $(DEBUG) | CFLAGS+= -DPIC $(DEBUG) | ||||
.if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | .if ${MACHINE_CPUARCH} == "amd64" || ${MACHINE_CPUARCH} == "i386" | ||||
CFLAGS+= -fvisibility=hidden | CFLAGS+= -fvisibility=hidden | ||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "mips" | .if ${MACHINE_CPUARCH} == "mips" | ||||
CFLAGS.reloc.c+=-fno-jump-tables | CFLAGS.reloc.c+=-fno-jump-tables | ||||
.endif | .endif | ||||
LDFLAGS+= -shared -Wl,-Bsymbolic -Wl,-z,defs | LDFLAGS+= -shared -Wl,-Bsymbolic -Wl,-z,defs | ||||
LIBADD= c_pic | LIBADD= c_nossp_pic | ||||
.if ${MK_TOOLCHAIN} == "no" | .if ${MK_TOOLCHAIN} == "no" | ||||
LDFLAGS+= -L${LIBCDIR} | LDFLAGS+= -L${LIBCDIR} | ||||
.endif | .endif | ||||
.if ${MACHINE_CPUARCH} == "arm" | .if ${MACHINE_CPUARCH} == "arm" | ||||
# Some of the required math functions (div & mod) are implemented in | # Some of the required math functions (div & mod) are implemented in | ||||
# libcompiler_rt on ARM. The library also needs to be placed first to be | # libcompiler_rt on ARM. The library also needs to be placed first to be | ||||
# correctly linked. As some of the functions are used before we have | # correctly linked. As some of the functions are used before we have | ||||
Show All 34 Lines |