Changeset View
Changeset View
Standalone View
Standalone View
archivers/p7zip/Makefile
Show All 19 Lines | |||||
MAKE_ARGS= OPTFLAGS="${CXXFLAGS}" | MAKE_ARGS= OPTFLAGS="${CXXFLAGS}" | ||||
WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION} | WRKSRC= ${WRKDIR}/${PORTNAME}_${PORTVERSION} | ||||
CFLAGS_arm= -fPIC | CFLAGS_arm= -fPIC | ||||
CFLAGS_armv6= -fPIC | CFLAGS_armv6= -fPIC | ||||
CFLAGS_armv7= -fPIC | CFLAGS_armv7= -fPIC | ||||
CFLAGS_aarch64= -fPIC | CFLAGS_aarch64= -fPIC | ||||
CFLAGS_amd64= -fPIC | CFLAGS_amd64= -fPIC | ||||
CFLAGS_i386= -fPIC | |||||
CFLAGS_powerpc= -fPIC | CFLAGS_powerpc= -fPIC | ||||
CFLAGS_sparc64= -fPIC | CFLAGS_sparc64= -fPIC | ||||
.if ${ARCH} == "i386" | |||||
# Fix the build for i386 when WITH_LLD_IS_LD is set | |||||
# https://bugs.freebsd.org/230210 | |||||
LDFLAGS+=-Wl,-z,notext | |||||
.endif | |||||
tobik: This needs to happen after including bsd.ports.{options,pre}.mk as ARCH is not yet defined at⦠| |||||
Done Inline ActionsAh actually I wanted to use LDFLAGS_i386 construct initially (for the sake of simplicity and similarity to `CFLAGS_i386, but I couldn't find anything about it in handbook. mmokhi: Ah actually I wanted to use `LDFLAGS_i386` construct initially (for the sake of simplicity and⦠| |||||
OPTIONS_DEFINE= DOCS | OPTIONS_DEFINE= DOCS | ||||
PORTDOCS= * | PORTDOCS= * | ||||
post-patch: | post-patch: | ||||
${SED} -e 's!g\+\+!${CXX}!' \ | ${SED} -e 's!g\+\+!${CXX}!' \ | ||||
-e 's!gcc!${CC}!' \ | -e 's!gcc!${CC}!' \ | ||||
Show All 29 Lines |
This needs to happen after including bsd.ports.{options,pre}.mk as ARCH is not yet defined at this point, so it cannot be used in an .if as that forces evaluation of it too early:
Why not instead use