Page MenuHomeFreeBSD

D6362.id27999.diff
No OneTemporary

D6362.id27999.diff

Index: Mk/Uses/compiler.mk
===================================================================
--- Mk/Uses/compiler.mk
+++ Mk/Uses/compiler.mk
@@ -96,8 +96,25 @@
.if ${_COMPILER_ARGS:Mopenmp}
.if ${COMPILER_TYPE} == clang
-USE_GCC= yes
+.if ${ARCH} == amd64
+_USES_POST+= localbase:ldflags
+.if ${COMPILER_VERSION} < 38
+CFLAGS+= -D_OPENMP
+.endif
+LIB_DEPENDS+= libomp.so.0:devel/openmp
+LDFLAGS+= -lomp
+.else
+USE_GCC= yes
CHOSEN_COMPILER_TYPE= gcc
+.if ${COMPILER_FEATURES:Mlibc++}
+CXXFLAGS+= -nostdinc++ -isystem /usr/include/c++/v1
+LDFLAGS+= -L${WRKDIR}
+
+_USES_configure+= 200:gcc-libc++-configure
+gcc-libc++-configure:
+ @${LN} -fs /usr/lib/libc++.so ${WRKDIR}/libstdc++.so
+.endif
+.endif
.endif
.endif
Index: math/openblas/Makefile
===================================================================
--- math/openblas/Makefile
+++ math/openblas/Makefile
@@ -73,6 +73,7 @@
.endif
.if ${PORT_OPTIONS:MOPENMP}
+USE_GCC= yes
USES+= compiler:openmp
BUILDFLAGS_THREAD+= USE_OPENMP=1
.endif

File Metadata

Mime Type
text/plain
Expires
Sat, Sep 26, 6:56 PM (10 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
39685227
Default Alt Text
D6362.id27999.diff (1016 B)

Event Timeline