Skip to content

Commit

Permalink
makefiles: Do some HOST_CYGWIN -> HOST_WINDOWS
Browse files Browse the repository at this point in the history
These bits are not Cygwin-specific.
  • Loading branch information
Ericson2314 committed Jan 12, 2024
1 parent 34bb6dc commit af0345d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mk/libraries.mk
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ libs-list :=
ifdef HOST_DARWIN
SO_EXT = dylib
else
ifdef HOST_CYGWIN
ifdef HOST_WINDOWS
SO_EXT = dll
else
SO_EXT = so
Expand Down Expand Up @@ -65,7 +65,7 @@ define build-library
$(1)_OBJS := $$(addprefix $(buildprefix), $$(addsuffix .o, $$(basename $$(_srcs))))
_libs := $$(foreach lib, $$($(1)_LIBS), $$($$(lib)_PATH))

ifdef HOST_CYGWIN
ifdef HOST_WINDOWS
$(1)_INSTALL_DIR ?= $$(bindir)
else
$(1)_INSTALL_DIR ?= $$(libdir)
Expand All @@ -85,7 +85,7 @@ define build-library
endif
else
ifndef HOST_DARWIN
ifndef HOST_CYGWIN
ifndef HOST_WINDOWS
$(1)_LDFLAGS += -Wl,-z,defs
endif
endif
Expand Down

0 comments on commit af0345d

Please sign in to comment.