1
- From 258ad2ccebe93fa9c5ad74a17c603b3fb8925190 Mon Sep 17 00:00:00 2001
1
+ From 04b50aef6bca52238afeb627e51a855f9172eea4 Mon Sep 17 00:00:00 2001
2
2
3
3
Date: Sun, 21 Jan 2024 22:34:48 +0200
4
4
Subject: [PATCH] create a single shared object
5
5
6
6
---
7
7
Makefile | 10 ----------
8
- Makefile.install | 16 + ---------------
8
+ Makefile.install | 18 ++- ---------------
9
9
Makefile.system | 3 +++
10
10
exports/Makefile | 4 ++--
11
11
openblas.pc.in | 2 +-
12
- 5 files changed, 7 insertions(+), 28 deletions(-)
12
+ 5 files changed, 8 insertions(+), 29 deletions(-)
13
13
14
14
diff --git a/Makefile b/Makefile
15
- index 8621a8b3f..56a449306 100644
15
+ index b344abcd2..ae989ac26 100644
16
16
--- a/Makefile
17
17
+++ b/Makefile
18
18
@@ -134,17 +134,12 @@ shared : libs netlib $(RELA)
@@ -33,7 +33,7 @@ index 8621a8b3f..56a449306 100644
33
33
endif
34
34
ifeq ($(OSNAME), WINNT)
35
35
@$(MAKE) -C exports dll
36
- @@ -229,13 +225 ,11 @@ endif
36
+ @@ -229,13 +224 ,11 @@ ifeq ($(INTERFACE64),1)
37
37
endif
38
38
@echo THELIBNAME=$(LIBNAME) >> Makefile.conf_last
39
39
@echo THELIBSONAME=$(LIBSONAME) >> Makefile.conf_last
@@ -47,23 +47,23 @@ index 8621a8b3f..56a449306 100644
47
47
for d in $(SUBDIRS) ; \
48
48
do if test -d $$d; then \
49
49
$(MAKE) -C $$d prof || exit 1 ; \
50
- @@ -230 ,7 +223 ,6 @@ ifeq ($(DYNAMIC_ARCH), 1)
50
+ @@ -246 ,7 +239 ,6 @@ ifeq ($(DYNAMIC_ARCH), 1)
51
51
endif
52
52
53
53
blas :
54
54
- ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
55
55
for d in $(BLASDIRS) ; \
56
56
do if test -d $$d; then \
57
57
$(MAKE) -C $$d libs || exit 1 ; \
58
- @@ -238 ,7 +230 ,6 @@ blas :
58
+ @@ -254 ,7 +246 ,6 @@ blas :
59
59
done
60
60
61
61
hpl :
62
62
- ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
63
63
for d in $(BLASDIRS) ../laswp exports ; \
64
64
do if test -d $$d; then \
65
65
$(MAKE) -C $$d $(@F) || exit 1 ; \
66
- @@ -252 ,7 +243 ,6 @@ ifeq ($(DYNAMIC_ARCH), 1)
66
+ @@ -268 ,7 +259 ,6 @@ ifeq ($(DYNAMIC_ARCH), 1)
67
67
endif
68
68
69
69
hpl_p :
@@ -72,10 +72,10 @@ index 8621a8b3f..56a449306 100644
72
72
do if test -d $$d; then \
73
73
$(MAKE) -C $$d $(@F) || exit 1 ; \
74
74
diff --git a/Makefile.install b/Makefile.install
75
- index 01899b970..cf3c8acce 100644
75
+ index 81f959177..e5c7ef5be 100644
76
76
--- a/Makefile.install
77
77
+++ b/Makefile.install
78
- @@ -90 ,30 +90 ,20 @@ endif
78
+ @@ -98 ,30 +98 ,20 @@ endif
79
79
ifneq ($(NO_STATIC),1)
80
80
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
81
81
@install -m644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
@@ -99,14 +99,15 @@ index 01899b970..cf3c8acce 100644
99
99
endif
100
100
ifeq ($(OSNAME), Darwin)
101
101
@-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)"
103
103
- @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
104
104
- ln -fs $(LIBDYNNAME) $(LIBPREFIX).dylib ; \
105
105
- ln -fs $(LIBDYNNAME) $(LIBPREFIX).$(MAJOR_VERSION).dylib
106
+ + @-install_name_tool -id "$(OPENBLAS_LIBRARY_DIR)/$(LIBPREFIX).dylib" "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)/$(LIBDYNNAME)"
106
107
endif
107
108
ifeq ($(OSNAME), WINNT)
108
109
@-cp $(LIBDLLNAME) "$(DESTDIR)$(OPENBLAS_BINARY_DIR)"
109
- @@ -140 ,16 +130 ,11 @@ endif
110
+ @@ -148 ,16 +138 ,11 @@ endif
110
111
ifneq ($(NO_STATIC),1)
111
112
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
112
113
@installbsd -c -m 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
@@ -123,7 +124,7 @@ index 01899b970..cf3c8acce 100644
123
124
endif
124
125
125
126
endif
126
- @@ -162 ,6 +147 ,7 @@ endif
127
+ @@ -170 ,6 +155 ,7 @@ endif
127
128
128
129
@echo Generating $(LIBSONAMEBASE)$(SUFFIX64).pc in "$(DESTDIR)$(OPENBLAS_PKGCONFIG_DIR)"
129
130
@echo 'libdir='$(OPENBLAS_LIBRARY_DIR) > "$(PKGFILE)"
@@ -132,10 +133,10 @@ index 01899b970..cf3c8acce 100644
132
133
@echo 'includedir='$(OPENBLAS_INCLUDE_DIR) >> "$(PKGFILE)"
133
134
@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)"
134
135
diff --git a/Makefile.system b/Makefile.system
135
- index 30b0ddec2..b2c92b99a 100644
136
+ index e602eaf05..b4f7c70b6 100644
136
137
--- a/Makefile.system
137
138
+++ 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)
139
140
endif
140
141
endif
141
142
0 commit comments