Don't create an absolute symlink when installing on Darwin
authorElliot Saba <staticfloat@gmail.com>
Wed, 16 Jul 2014 19:31:27 +0000 (15:31 -0400)
committerElliot Saba <staticfloat@gmail.com>
Wed, 16 Jul 2014 19:31:27 +0000 (15:31 -0400)
Makefile.install

index e0ccccb..c7d1d0d 100644 (file)
@@ -79,7 +79,8 @@ endif
 ifeq ($(OSNAME), Darwin)
        @-cp $(LIBDYNNAME) $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
        @-install_name_tool -id $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)/$(LIBDYNNAME) $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)/$(LIBDYNNAME)
-       @-ln -fs $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)/$(LIBDYNNAME) $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)/$(LIBPREFIX).dylib
+       @cd $(DESTDIR)$(OPENBLAS_LIBRARY_DIR) ; \
+       ln -fs $(LIBDYNNAME) $(LIBPREFIX).dylib
 endif
 ifeq ($(OSNAME), WINNT)
        @-cp $(LIBDLLNAME) $(OPENBLAS_BINARY_DIR)