Browse Source

Set shared library soname in Linux.

tags/v0.1.0^2
Xianyi Zhang 14 years ago
parent
commit
d047afe615
4 changed files with 4 additions and 1 deletions
  1. +1
    -0
      Makefile
  2. +1
    -0
      Makefile.install
  3. +1
    -0
      Makefile.system
  4. +1
    -1
      exports/Makefile

+ 1
- 0
Makefile View File

@@ -83,6 +83,7 @@ shared :
ifeq ($(OSNAME), Linux)
$(MAKE) -C exports so
-ln -fs $(LIBSONAME) libopenblas.so
-ln -fs $(LIBSONAME) libopenblas.so.$(MAJOR_VERSION)
endif
ifeq ($(OSNAME), FreeBSD)
$(MAKE) -C exports so


+ 1
- 0
Makefile.install View File

@@ -44,6 +44,7 @@ install : lib.grd
ifeq ($(OSNAME), Linux)
-cp $(LIBSONAME) $(OPENBLAS_LIBRARY_DIR)
-ln -fs $(OPENBLAS_LIBRARY_DIR)/$(LIBSONAME) $(OPENBLAS_LIBRARY_DIR)/libopenblas.so
-ln -fs $(OPENBLAS_LIBRARY_DIR)/$(LIBSONAME) $(OPENBLAS_LIBRARY_DIR)/libopenblas.so.$(MAJOR_VERSION)
endif
ifeq ($(OSNAME), FreeBSD)
-cp $(LIBSONAME) $(OPENBLAS_LIBRARY_DIR)


+ 1
- 0
Makefile.system View File

@@ -637,6 +637,7 @@ MD5SUM = md5sum
AWK = awk

REVISION = -r$(VERSION)
MAJOR_VERSION = $(word 1,$(subst ., ,$(VERSION)))

CFLAGS = $(COMMON_OPT) $(CCOMMON_OPT) -I$(TOPDIR)
PFLAGS = $(COMMON_OPT) $(CCOMMON_OPT) -I$(TOPDIR) -DPROFILE $(COMMON_PROF)


+ 1
- 1
exports/Makefile View File

@@ -100,7 +100,7 @@ so : ../$(LIBSONAME)
../$(LIBSONAME) : ../$(LIBNAME) linux.def linktest.c
$(CC) $(CFLAGS) -shared -o ../$(LIBSONAME) \
-Wl,--whole-archive ../$(LIBNAME) -Wl,--no-whole-archive \
-Wl,--retain-symbols-file=linux.def $(EXTRALIB)
-Wl,--retain-symbols-file=linux.def -Wl,-soname,libopenblas.so.$(MAJOR_VERSION) $(EXTRALIB)
$(CC) $(CFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK.
rm -f linktest



Loading…
Cancel
Save