Skip to content

Commit 51f038d

Browse files
committed
udpate patch: do not use version in install_name
1 parent 18e46fe commit 51f038d

File tree

1 file changed

+16
-15
lines changed

1 file changed

+16
-15
lines changed

patches/0001-create-a-single-shared-object.patch

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
From 258ad2ccebe93fa9c5ad74a17c603b3fb8925190 Mon Sep 17 00:00:00 2001
1+
From 04b50aef6bca52238afeb627e51a855f9172eea4 Mon Sep 17 00:00:00 2001
22
From: mattip <[email protected]>
33
Date: Sun, 21 Jan 2024 22:34:48 +0200
44
Subject: [PATCH] create a single shared object
55

66
---
77
Makefile | 10 ----------
8-
Makefile.install | 16 +---------------
8+
Makefile.install | 18 ++----------------
99
Makefile.system | 3 +++
1010
exports/Makefile | 4 ++--
1111
openblas.pc.in | 2 +-
12-
5 files changed, 7 insertions(+), 28 deletions(-)
12+
5 files changed, 8 insertions(+), 29 deletions(-)
1313

1414
diff --git a/Makefile b/Makefile
15-
index 8621a8b3f..56a449306 100644
15+
index b344abcd2..ae989ac26 100644
1616
--- a/Makefile
1717
+++ b/Makefile
1818
@@ -134,17 +134,12 @@ shared : libs netlib $(RELA)
@@ -33,7 +33,7 @@ index 8621a8b3f..56a449306 100644
3333
endif
3434
ifeq ($(OSNAME), WINNT)
3535
@$(MAKE) -C exports dll
36-
@@ -229,13 +225,11 @@ endif
36+
@@ -229,13 +224,11 @@ ifeq ($(INTERFACE64),1)
3737
endif
3838
@echo THELIBNAME=$(LIBNAME) >> Makefile.conf_last
3939
@echo THELIBSONAME=$(LIBSONAME) >> Makefile.conf_last
@@ -47,23 +47,23 @@ index 8621a8b3f..56a449306 100644
4747
for d in $(SUBDIRS) ; \
4848
do if test -d $$d; then \
4949
$(MAKE) -C $$d prof || exit 1 ; \
50-
@@ -230,7 +223,6 @@ ifeq ($(DYNAMIC_ARCH), 1)
50+
@@ -246,7 +239,6 @@ ifeq ($(DYNAMIC_ARCH), 1)
5151
endif
5252

5353
blas :
5454
- ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
5555
for d in $(BLASDIRS) ; \
5656
do if test -d $$d; then \
5757
$(MAKE) -C $$d libs || exit 1 ; \
58-
@@ -238,7 +230,6 @@ blas :
58+
@@ -254,7 +246,6 @@ blas :
5959
done
6060

6161
hpl :
6262
- ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
6363
for d in $(BLASDIRS) ../laswp exports ; \
6464
do if test -d $$d; then \
6565
$(MAKE) -C $$d $(@F) || exit 1 ; \
66-
@@ -252,7 +243,6 @@ ifeq ($(DYNAMIC_ARCH), 1)
66+
@@ -268,7 +259,6 @@ ifeq ($(DYNAMIC_ARCH), 1)
6767
endif
6868

6969
hpl_p :
@@ -72,10 +72,10 @@ index 8621a8b3f..56a449306 100644
7272
do if test -d $$d; then \
7373
$(MAKE) -C $$d $(@F) || exit 1 ; \
7474
diff --git a/Makefile.install b/Makefile.install
75-
index 01899b970..cf3c8acce 100644
75+
index 81f959177..e5c7ef5be 100644
7676
--- a/Makefile.install
7777
+++ b/Makefile.install
78-
@@ -90,30 +90,20 @@ endif
78+
@@ -98,30 +98,20 @@ endif
7979
ifneq ($(NO_STATIC),1)
8080
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
8181
@install -m644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
@@ -99,14 +99,15 @@ index 01899b970..cf3c8acce 100644
9999
endif
100100
ifeq ($(OSNAME), Darwin)
101101
@-cp $(LIBDYNNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
102-
@-install_name_tool -id "$(OPENBLAS_LIBRARY_DIR)/$(LIBPREFIX).$(MAJOR_VERSION).dylib" "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)/$(LIBDYNNAME)"
102+
- @-install_name_tool -id "$(OPENBLAS_LIBRARY_DIR)/$(LIBPREFIX).$(MAJOR_VERSION).dylib" "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)/$(LIBDYNNAME)"
103103
- @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
104104
- ln -fs $(LIBDYNNAME) $(LIBPREFIX).dylib ; \
105105
- ln -fs $(LIBDYNNAME) $(LIBPREFIX).$(MAJOR_VERSION).dylib
106+
+ @-install_name_tool -id "$(OPENBLAS_LIBRARY_DIR)/$(LIBPREFIX).dylib" "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)/$(LIBDYNNAME)"
106107
endif
107108
ifeq ($(OSNAME), WINNT)
108109
@-cp $(LIBDLLNAME) "$(DESTDIR)$(OPENBLAS_BINARY_DIR)"
109-
@@ -140,16 +130,11 @@ endif
110+
@@ -148,16 +138,11 @@ endif
110111
ifneq ($(NO_STATIC),1)
111112
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
112113
@installbsd -c -m 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
@@ -123,7 +124,7 @@ index 01899b970..cf3c8acce 100644
123124
endif
124125

125126
endif
126-
@@ -162,6 +147,7 @@ endif
127+
@@ -170,6 +155,7 @@ endif
127128

128129
@echo Generating $(LIBSONAMEBASE)$(SUFFIX64).pc in "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)"
129130
@echo 'libdir='$(OPENBLAS_LIBRARY_DIR) > "$(PKGFILE)"
@@ -132,10 +133,10 @@ index 01899b970..cf3c8acce 100644
132133
@echo 'includedir='$(OPENBLAS_INCLUDE_DIR) >> "$(PKGFILE)"
133134
@echo 'openblas_config= USE_64BITINT='$(INTERFACE64) '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)>> "$(PKGFILE)"
134135
diff --git a/Makefile.system b/Makefile.system
135-
index 30b0ddec2..b2c92b99a 100644
136+
index e602eaf05..b4f7c70b6 100644
136137
--- a/Makefile.system
137138
+++ b/Makefile.system
138-
@@ -1695,6 +1695,9 @@ LIBNAME_P = $(LIBPREFIX)p$(REVISION)_p.$(LIBSUFFIX)
139+
@@ -1699,6 +1699,9 @@ LIBNAME_P = $(LIBPREFIX)p$(REVISION)_p.$(LIBSUFFIX)
139140
endif
140141
endif
141142

0 commit comments

Comments
 (0)