summaryrefslogtreecommitdiff
path: root/print/cups/Makefile
diff options
context:
space:
mode:
authorryoon <ryoon>2014-06-01 06:19:02 +0000
committerryoon <ryoon>2014-06-01 06:19:02 +0000
commit12134f41d1ea8894b5939c5ba5eaf9f115eef6cc (patch)
treee2f4b7ac95024e0912acf4e7c0288e06cc4fecfc /print/cups/Makefile
parent53a12cb7b8f0fdafb4a28a02c512c27a1f7d2623 (diff)
downloadpkgsrc-12134f41d1ea8894b5939c5ba5eaf9f115eef6cc.tar.gz
Fix OpenBSD and FreeBSD (clang) builds
Diffstat (limited to 'print/cups/Makefile')
-rw-r--r--print/cups/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/print/cups/Makefile b/print/cups/Makefile
index 23e9e57395a..01030cc52c0 100644
--- a/print/cups/Makefile
+++ b/print/cups/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.206 2014/05/29 23:37:15 wiz Exp $
+# $NetBSD: Makefile,v 1.207 2014/06/01 06:19:02 ryoon Exp $
#
# The CUPS author is very good about taking back changes into the main
# CUPS distribution. The correct place to send patches or bug-fixes is:
@@ -80,6 +80,13 @@ PLIST_VARS+= notmac
PLIST.notmac= yes
.endif
+# Avoid the following error when compiling with clang.
+# /usr/local/bin/ld: /usr/lib/crt1.o: relocation R_X86_64_32 against `_DYNAMIC'
+# can not be used when making a shared object; recompile with -fPIC
+.if ${OPSYS} == "FreeBSD"
+BUILDLINK_TRANSFORM+= rm:-Wl,-pie
+.endif
+
# CUPS_USER user to run filter and CGI programs as
# CUPS_GROUP group to run filter and CGI programs as
# CUPS_SYSTEM_GROUPS group for system administration