1
- From 7203d885e0b88128d2b2252956d21c0000888de4 Mon Sep 17 00:00:00 2001
1
+ From ebca632fd6a3b41643d2cd51da37c6c199e915be Mon Sep 17 00:00:00 2001
2
2
3
- Date: Fri, 19 Jan 2024 17:15:06 +0200
3
+ Date: Sat, 20 Jan 2024 23:34:21 +0200
4
4
Subject: [PATCH] create a single shared object
5
5
6
6
---
7
7
Makefile | 5 -----
8
- Makefile.install | 11 -----------
8
+ Makefile.install | 15 ---- -----------
9
9
Makefile.system | 3 +++
10
10
exports/Makefile | 4 ++--
11
- 4 files changed, 5 insertions(+), 18 deletions(-)
11
+ 4 files changed, 5 insertions(+), 22 deletions(-)
12
12
13
13
diff --git a/Makefile b/Makefile
14
14
index 8621a8b3f..0febfd0a6 100644
@@ -33,10 +33,10 @@ index 8621a8b3f..0febfd0a6 100644
33
33
ifeq ($(OSNAME), WINNT)
34
34
@$(MAKE) -C exports dll
35
35
diff --git a/Makefile.install b/Makefile.install
36
- index 01899b970..7dee121c1 100644
36
+ index 01899b970..105bc4271 100644
37
37
--- a/Makefile.install
38
38
+++ b/Makefile.install
39
- @@ -90,30 +90,22 @@ endif
39
+ @@ -90,30 +90,20 @@ endif
40
40
ifneq ($(NO_STATIC),1)
41
41
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
42
42
@install -m644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
@@ -55,29 +55,30 @@ index 01899b970..7dee121c1 100644
55
55
56
56
ifeq ($(OSNAME), $(filter $(OSNAME),OpenBSD NetBSD))
57
57
@cp $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
58
- @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
58
+ - @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
59
59
- ln -fs $(LIBSONAME) $(LIBPREFIX).so
60
60
endif
61
61
ifeq ($(OSNAME), Darwin)
62
62
@-cp $(LIBDYNNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
63
63
@-install_name_tool -id "$(OPENBLAS_LIBRARY_DIR)/$(LIBPREFIX).$(MAJOR_VERSION).dylib" "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)/$(LIBDYNNAME)"
64
- @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
64
+ - @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
65
65
- ln -fs $(LIBDYNNAME) $(LIBPREFIX).dylib ; \
66
66
- ln -fs $(LIBDYNNAME) $(LIBPREFIX).$(MAJOR_VERSION).dylib
67
67
endif
68
68
ifeq ($(OSNAME), WINNT)
69
69
@-cp $(LIBDLLNAME) "$(DESTDIR)$(OPENBLAS_BINARY_DIR)"
70
- @@ -141,15 +133,12 @@ ifneq ($(NO_STATIC),1)
70
+ @@ -140,16 +130,11 @@ endif
71
+ ifneq ($(NO_STATIC),1)
71
72
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
72
73
@installbsd -c -m 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
73
- @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
74
+ - @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
74
75
- ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
75
76
endif
76
77
#for install shared library
77
78
ifneq ($(NO_SHARED),1)
78
79
@echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
79
80
@installbsd -c -m 755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
80
- @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
81
+ - @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
81
82
- ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \
82
83
- ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION)
83
84
endif
0 commit comments