summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2015-03-31 09:44:30 +0000
committertnn <tnn@pkgsrc.org>2015-03-31 09:44:30 +0000
commit3aa426647088736974e13eb51a8481d175adb19e (patch)
tree5d089b0a89860bda1ec9f573243d47a29c93a1da /net
parent0b38661678e8a57cd755a24b7d55fe8a5f4b3a94 (diff)
downloadpkgsrc-3aa426647088736974e13eb51a8481d175adb19e.tar.gz
PR pkg/49803 solaris build fix
Diffstat (limited to 'net')
-rw-r--r--net/synergy/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/net/synergy/Makefile b/net/synergy/Makefile
index f151912112f..ecaced034c9 100644
--- a/net/synergy/Makefile
+++ b/net/synergy/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2015/03/19 19:26:28 tnn Exp $
+# $NetBSD: Makefile,v 1.28 2015/03/31 09:44:30 tnn Exp $
#
DISTNAME= synergy-1.7.0
@@ -62,6 +62,13 @@ CWRAPPERS_APPEND.cxx+= -std=c++11 -Wno-switch -Wno-unused \
-Wno-deprecated-register -Wno-tautological-compare
.endif
+.include "../../mk/endian.mk"
+.if ${MACHINE_ENDIAN} == "big"
+CFLAGS+= -DUSYNERGY_BIG_ENDIAN
+.else
+CFLAGS+= -DUSYNERGY_LITTLE_ENDIAN
+.endif
+
# XXX surely there exists a better way to do this
.if ${OPSYS} != "Linux"
BUILDLINK_TRANSFORM+= rm:-ldl