Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 Sep 2019 17:41:49 +0000 (UTC)
From:      Ganael LAPLANCHE <martymac@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r510965 - in head/devel/tbb: . files
Message-ID:  <201909031741.x83HfnuL087843@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: martymac
Date: Tue Sep  3 17:41:49 2019
New Revision: 510965
URL: https://svnweb.freebsd.org/changeset/ports/510965

Log:
  Fix build on powerpc64
  
  PR:		240291
  Submitted by:	pkubaj

Added:
  head/devel/tbb/files/patch-build_FreeBSD.gcc.inc   (contents, props changed)
Modified:
  head/devel/tbb/Makefile
  head/devel/tbb/files/patch-build-BSD.inc

Modified: head/devel/tbb/Makefile
==============================================================================
--- head/devel/tbb/Makefile	Tue Sep  3 17:38:44 2019	(r510964)
+++ head/devel/tbb/Makefile	Tue Sep  3 17:41:49 2019	(r510965)
@@ -10,7 +10,7 @@ COMMENT=	Library that provides thread building blocks
 
 LICENSE=	APACHE20
 
-ONLY_FOR_ARCHS=		aarch64 amd64 armv6 armv7 i386
+ONLY_FOR_ARCHS=		aarch64 amd64 armv6 armv7 i386 powerpc64
 ONLY_FOR_ARCHS_REASON=	has not been ported to this platform
 
 USES=	compiler gmake tar:tgz

Modified: head/devel/tbb/files/patch-build-BSD.inc
==============================================================================
--- head/devel/tbb/files/patch-build-BSD.inc	Tue Sep  3 17:38:44 2019	(r510964)
+++ head/devel/tbb/files/patch-build-BSD.inc	Tue Sep  3 17:41:49 2019	(r510965)
@@ -1,6 +1,6 @@
---- build/BSD.inc.orig	2018-06-19 16:04:20 UTC
+--- build/BSD.inc.orig	2019-03-21 15:28:21 UTC
 +++ build/BSD.inc
-@@ -26,17 +26,23 @@ ifndef arch
+@@ -26,17 +26,26 @@ ifndef arch
          ifeq ($(shell uname -m),amd64)
                  export arch:=intel64
          endif
@@ -10,6 +10,9 @@
 +        ifeq ($(shell uname -m),arm64)
 +                export arch:=arm64
 +        endif
++        ifeq ($(shell uname -p),powerpc64)
++                export arch:=powerpc64
++        endif
  endif
  
  ifndef runtime
@@ -27,7 +30,7 @@
  debugger ?= gdb
  
  CMD=$(SHELL) -c
-@@ -46,7 +52,7 @@ RD?=rmdir
+@@ -46,7 +55,7 @@ RD?=rmdir
  MD?=mkdir -p
  NUL= /dev/null
  SLASH=/

Added: head/devel/tbb/files/patch-build_FreeBSD.gcc.inc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/tbb/files/patch-build_FreeBSD.gcc.inc	Tue Sep  3 17:41:49 2019	(r510965)
@@ -0,0 +1,14 @@
+--- build/FreeBSD.gcc.inc.orig	2019-03-21 15:28:21 UTC
++++ build/FreeBSD.gcc.inc
+@@ -60,6 +60,11 @@ ifeq (ia64,$(arch))
+ endif 
+ 
+ ifeq (intel64,$(arch))
++    CPLUS_FLAGS += -m64
++    LIB_LINK_FLAGS += -m64
++endif 
++
++ifeq (powerpc64,$(arch))
+     CPLUS_FLAGS += -m64
+     LIB_LINK_FLAGS += -m64
+ endif 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909031741.x83HfnuL087843>