File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,14 @@ OPENBLAS_CMAKE_DIR := $(OPENBLAS_LIBRARY_DIR)/cmake/openblas
13
13
OPENBLAS_CMAKE_CONFIG := OpenBLASConfig.cmake
14
14
OPENBLAS_CMAKE_CONFIG_VERSION := OpenBLASConfigVersion.cmake
15
15
OPENBLAS_PKGCONFIG_DIR := $(OPENBLAS_LIBRARY_DIR)/pkgconfig
16
+ PKG_EXTRALIB := $(EXTRALIB)
17
+ ifeq ($(USE_OPENMP), 1)
18
+ ifeq ($(C_COMPILER), PGI)
19
+ PKG_EXTRALIB += -lomp
20
+ else
21
+ PKG_EXTRALIB += -lgomp
22
+ endif
23
+ endif
16
24
17
25
.PHONY : install
18
26
.NOTPARALLEL : install
@@ -147,7 +155,7 @@ endif
147
155
@echo 'includedir='$(OPENBLAS_INCLUDE_DIR) >> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/openblas.pc"
148
156
@echo 'openblas_config= USE_64BITINT='$(USE_64BITINT) 'DYNAMIC_ARCH='$(DYNAMIC_ARCH) 'DYNAMIC_OLDER='$(DYNAMIC_OLDER) 'NO_CBLAS='$(NO_CBLAS) 'NO_LAPACK='$(NO_LAPACK) 'NO_LAPACKE='$(NO_LAPACKE) 'NO_AFFINITY='$(NO_AFFINITY) 'USE_OPENMP='$(USE_OPENMP) $(CORE) 'MAX_THREADS='$(NUM_THREADS)>> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/openblas.pc"
149
157
@echo 'version='$(VERSION) >> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/openblas.pc"
150
- @echo 'extralib='$(EXTRALIB ) >> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/openblas.pc"
158
+ @echo 'extralib='$(PKG_EXTRALIB ) >> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/openblas.pc"
151
159
@cat openblas.pc.in >> "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)/openblas.pc"
152
160
153
161
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ Name: OpenBLAS
7
7
Description: OpenBLAS is an optimized BLAS library based on GotoBLAS2 1.13 BSD version
8
8
Version: @OPENBLAS_VERSION@
9
9
URL: https://github.com/xianyi/OpenBLAS
10
- Libs: -L${libdir} -lopenblas${libsuffix}
10
+ Libs: @OpenMP_C_FLAGS@ -L${libdir} -lopenblas${libsuffix}
11
11
Cflags: -I${includedir}
You can’t perform that action at this time.
0 commit comments