From 90dd190a6d658be780f257dbd4994f9798a0b983 Mon Sep 17 00:00:00 2001 From: Zhang Xianyi Date: Tue, 11 Apr 2017 11:56:10 +0800 Subject: [PATCH] Build shared library for Android. --- Makefile | 2 +- Makefile.install | 2 +- exports/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 2071e1099..6883e51cf 100644 --- a/Makefile +++ b/Makefile @@ -81,7 +81,7 @@ endif shared : ifndef NO_SHARED -ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS)) +ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android)) @$(MAKE) -C exports so @ln -fs $(LIBSONAME) $(LIBPREFIX).so @ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION) diff --git a/Makefile.install b/Makefile.install index 4c35c9391..24fe8c820 100644 --- a/Makefile.install +++ b/Makefile.install @@ -66,7 +66,7 @@ endif #for install shared library ifndef NO_SHARED @echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) -ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS)) +ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android)) @install -pm755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \ ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \ diff --git a/exports/Makefile b/exports/Makefile index 5632b6fff..dad63e22d 100644 --- a/exports/Makefile +++ b/exports/Makefile @@ -118,7 +118,7 @@ endif dllinit.$(SUFFIX) : dllinit.c $(CC) $(CFLAGS) -c -o $(@F) -s $< -ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS)) +ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android)) so : ../$(LIBSONAME)