diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-12-27 10:46:54 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-12-27 10:46:54 +0000 |
commit | ef9aea6687b97f892ddcef2d57a72bb8c13c0638 (patch) | |
tree | a1254991d85de65a4c169fd728e0de3220b154d7 /Mk | |
parent | bfe80c7297eea17ae3ded44d7bd29ac7b2433db6 (diff) |
Notes
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.port.mk | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 4d8a670b47c8..9a3cb07bf13c 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -341,6 +341,9 @@ FreeBSD_MAINTAINER= portmgr@FreeBSD.org # USE_CSTD - Override the default C language standard (gnu89, gnu99) # USE_CXXSTD Override the default C++ language standard # USE_BINUTILS - Use binutils suite from port instead of the version in base. +# CFLAGS_${ARCH} Append the cflags to CFLAGS only on the specified architecture +# CXXFLAGS_${ARCH} +# Append the cxxflags to CXXFLAGS only on the specified architecture ## # USE_GHOSTSCRIPT # - If set, this port needs ghostscript to both @@ -2101,10 +2104,18 @@ CFLAGS+= -fno-strict-aliasing CFLAGS:= ${CFLAGS:N-std=*} -std=${USE_CSTD} .endif +.if defined(CFLAGS_${ARCH}) +CFLAGS+= ${CFLAGS_${ARCH}} +.endif + .if defined(USE_CXXSTD) CXXFLAGS:= ${CXXFLAGS:N-std=*} -std=${USE_CXXSTD} .endif +.if defined(CXXFLAGS_${ARCH}) +CXXFLAGS+= ${CXXFLAGS_${ARCH}} +.endif + # Multiple make jobs support .if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE) _MAKE_JOBS= # |