From: Debian Science Team Date: Mon, 23 Jan 2017 14:06:15 +0000 (+0000) Subject: kfreebsd X-Git-Tag: archive/raspbian/0.2.19-2+rpi1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a479d234c25766d4f39f2b70fae5a2bdbaf5f4dc;p=openblas.git.old kfreebsd Gbp-Pq: Name kfreebsd.patch --- diff --git a/Makefile.install b/Makefile.install index 1b9388a..60f9897 100644 --- a/Makefile.install +++ b/Makefile.install @@ -64,17 +64,12 @@ 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 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), FreeBSD) - @cp $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" - @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \ - ln -fs $(LIBSONAME) $(LIBPREFIX).so -endif ifeq ($(OSNAME), NetBSD) @cp $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" @cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \ diff --git a/Makefile.system b/Makefile.system index b05177b..d24996c 100644 --- a/Makefile.system +++ b/Makefile.system @@ -229,7 +229,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 5632b6f..db9883d 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 FreeBSD)) so : ../$(LIBSONAME) @@ -146,7 +146,7 @@ endif endif #http://stackoverflow.com/questions/7656425/makefile-ifeq-logical-or -ifeq ($(OSNAME), $(filter $(OSNAME),FreeBSD NetBSD)) +ifeq ($(OSNAME), $(filter $(OSNAME),NetBSD)) so : ../$(LIBSONAME)