aboutsummaryrefslogtreecommitdiff
path: root/irc/ircservices/Makefile
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-09-15 20:03:40 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-09-15 20:03:40 +0000
commitbe3defbebc9a55139835e51fe0e4f269ebefe436 (patch)
tree089d126ce36288b48af027afc8f418262b2f37e8 /irc/ircservices/Makefile
parent2a0d078cfcb76202a7ddde64aebfb8e9915abe62 (diff)
downloadports-be3defbebc9a55139835e51fe0e4f269ebefe436.tar.gz
ports-be3defbebc9a55139835e51fe0e4f269ebefe436.zip
- Fix CFLAGS settings
- Fix build on sparc64 Approved by: portmgr (pav)
Notes
Notes: svn path=/head/; revision=220392
Diffstat (limited to 'irc/ircservices/Makefile')
-rw-r--r--irc/ircservices/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/irc/ircservices/Makefile b/irc/ircservices/Makefile
index ce62ffb95c03..aac4be279715 100644
--- a/irc/ircservices/Makefile
+++ b/irc/ircservices/Makefile
@@ -21,16 +21,18 @@ USE_GMAKE= yes
USE_RC_SUBR= ircservices
DIST_SUBDIR= ${PORTNAME}
-CFLAGS+= -fPIC
CONFIGURE_ARGS= -prefix ${PREFIX} -cflags "${CFLAGS}" -cc "${CC}"
IRCSERVICES_LANG?= EN_US
.include <bsd.port.pre.mk>
-.if ${ARCH}=="sparc64"
-CONFIGURE_ARGS+= -ignore-cache
-CFLAGS:= ${CFLAGS:N-O*:N-pipe}
+.if ${OSVERSION} > 700042
+CFLAGS+= -fno-stack-protector
+.endif
+
+.if ${ARCH} == "amd64"
+CFLAGS+= -fPIC
.endif
pre-patch: