summaryrefslogtreecommitdiff
path: root/math/libxsmm/files/patch-Makefile
blob: 307e238c15556eb8af9dcec6721a7b78ee724036 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- 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..."