aboutsummaryrefslogtreecommitdiff
path: root/math/openblas
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2020-04-04 09:03:31 +0000
committerThierry Thomas <thierry@FreeBSD.org>2020-04-04 09:03:31 +0000
commit1649f8e10f3a5db5d328cb8f33d331b7544d52f2 (patch)
treeab1a2ae25d4c467b5157ce3423e16ad9ddd53bec /math/openblas
parentd17902617752d5babfc1512f1db486b7e71e4e34 (diff)
downloadports-1649f8e10f3a5db5d328cb8f33d331b7544d52f2.tar.gz
ports-1649f8e10f3a5db5d328cb8f33d331b7544d52f2.zip
Set a SONAME in libopenblas.so.
PR: 245320 Submitted by: /me Approved by: phd_kimberlite (maintainer)
Notes
Notes: svn path=/head/; revision=530631
Diffstat (limited to 'math/openblas')
-rw-r--r--math/openblas/Makefile2
-rw-r--r--math/openblas/files/patch-exports_Makefile11
2 files changed, 12 insertions, 1 deletions
diff --git a/math/openblas/Makefile b/math/openblas/Makefile
index dbb1db9e90a3..5dada7bef53e 100644
--- a/math/openblas/Makefile
+++ b/math/openblas/Makefile
@@ -4,7 +4,7 @@
PORTNAME= openblas
PORTVERSION= 0.3.7
DISTVERSIONPREFIX= v
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= math
MASTER_SITES= NL/lapack/timing/:lapack_tmg
diff --git a/math/openblas/files/patch-exports_Makefile b/math/openblas/files/patch-exports_Makefile
new file mode 100644
index 000000000000..26dccbab2baf
--- /dev/null
+++ b/math/openblas/files/patch-exports_Makefile
@@ -0,0 +1,11 @@
+--- exports/Makefile.orig 2019-08-11 21:23:27 UTC
++++ exports/Makefile
+@@ -184,7 +184,7 @@ else
+ endif
+ $(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \
+ -Wl,--whole-archive $< -Wl,--no-whole-archive \
+- $(FEXTRALIB) $(EXTRALIB)
++ -Wl,-soname,$(LIBSONAME) $(FEXTRALIB) $(EXTRALIB)
+ $(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
+ rm -f linktest
+