From: Debian Science Team Date: Tue, 31 Jul 2018 16:28:12 +0000 (+0100) Subject: kfreebsd X-Git-Tag: archive/raspbian/0.3.2+ds-1+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cbca767cf9fec4ef1817c2160492d60e44683500;p=openblas.git kfreebsd Gbp-Pq: Name kfreebsd.patch --- diff --git a/Makefile.install b/Makefile.install index c51c8a0..15b05e3 100644 --- a/Makefile.install +++ b/Makefile.install @@ -66,13 +66,13 @@ endif #for install shared library ifndef NO_SHARED @echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) -ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android)) +ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android FreeBSD)) @install -pm755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \ ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \ ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION) endif -ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD OpenBSD NetBSD DragonFly)) +ifeq ($(OSNAME), $(filter $(OSNAME),OpenBSD NetBSD DragonFly)) @cp $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \ ln -fs $(LIBSONAME) $(LIBPREFIX).so diff --git a/Makefile.system b/Makefile.system index 4712d95..60ad152 100644 --- a/Makefile.system +++ b/Makefile.system @@ -261,7 +261,7 @@ ifeq ($(OSNAME), NetBSD) MD5SUM = md5 -n endif -ifeq ($(OSNAME), Linux) +ifeq ($(OSNAME), $(filter $(OSNAME),Linux FreeBSD)) EXTRALIB += -lm NO_EXPRECISION = 1 endif diff --git a/exports/Makefile b/exports/Makefile index 127b050..13dfb8b 100644 --- a/exports/Makefile +++ b/exports/Makefile @@ -122,7 +122,7 @@ endif dllinit.$(SUFFIX) : dllinit.c $(CC) $(CFLAGS) -c -o $(@F) -s $< -ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android)) +ifeq ($(OSNAME), $(filter $(OSNAME),Linux SunOS Android FreeBSD)) so : ../$(LIBSONAME) @@ -158,7 +158,7 @@ endif endif #http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or -ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD OpenBSD NetBSD DragonFly)) +ifeq ($(OSNAME), $(filter $(OSNAME),OpenBSD NetBSD DragonFly)) so : ../$(LIBSONAME)