freebsd-ports/math/libxsmm/files/patch-Makefile
2020-09-21 17:19:26 +00:00

20 lines
614 B
Text

--- Makefile.orig 2020-06-26 14:58:46 UTC
+++ Makefile
@@ -27,6 +27,8 @@ CFLAGS = $(RPM_OPT_FLAGS)
CXXFLAGS = $(RPM_OPT_FLAGS)
FCFLAGS = $(RPM_OPT_FLAGS)
+CFLAGS += -fcommon # multiple definition of `libxsmm_scratch_pools' (and other symbols) https://github.com/hfp/libxsmm/issues/412
+
# THRESHOLD problem size (M x N x K) determining when to use BLAS
# A value of zero (0) populates a default threshold
THRESHOLD ?= 0
@@ -1611,7 +1613,7 @@ endif
endif
.PHONY: install-all
-install-all: install samples
+install-all: install
ifneq ($(PREFIX),$(ABSDIR))
@echo
@echo "LIBXSMM installing samples..."