Skip to content

Commit

Permalink
Cygwin build fix (#108)
Browse files Browse the repository at this point in the history
* Cygwin build fix

Use hard links on windows

* Add use of maintarget=$(word 1,$(TARGET_LIBRARIES))
  • Loading branch information
stahta01 authored Feb 28, 2023
1 parent 165da4c commit 4e78372
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
LBT_ROOT := $(dir $(abspath $(dir $(lastword $(MAKEFILE_LIST)))))
include $(LBT_ROOT)/src/Make.inc

ifeq ($(OS),WINNT)
# On Windows only build the library with the major soversion, all other copies
# are useless and error prone.
TARGET_LIBRARIES = $(builddir)/$(LIB_MAJOR_VERSION)
else
TARGET_LIBRARIES = $(builddir)/$(LIB_MAJOR_VERSION) $(builddir)/$(LIB_FULL_VERSION) $(builddir)/libblastrampoline.$(SHLIB_EXT)
endif

maintarget=$(word 1,$(TARGET_LIBRARIES))

# Default target
all: $(builddir)/libblastrampoline.$(SHLIB_EXT)
all: $(maintarget)

# Objects we'll build
MAIN_OBJS := libblastrampoline.o dl_utils.o config.o \
Expand Down

0 comments on commit 4e78372

Please sign in to comment.