forked from NixOS/nix
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build Windows DLLs with
-Wl,--export-all-symbols
This is not the most elegant, but will match the SOs in exporting everything for now. Later we can refine what is public/private to clean up the interface.
- Loading branch information
1 parent
af0345d
commit 90fdbfc
Showing
3 changed files
with
65 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
ifdef HOST_OS | ||
HOST_KERNEL = $(firstword $(subst -, ,$(HOST_OS))) | ||
ifeq ($(patsubst mingw%,,$(HOST_KERNEL)),) | ||
HOST_MINGW = 1 | ||
HOST_WINDOWS = 1 | ||
endif | ||
ifeq ($(HOST_KERNEL), cygwin) | ||
HOST_CYGWIN = 1 | ||
HOST_WINDOWS = 1 | ||
HOST_UNIX = 1 | ||
endif | ||
ifeq ($(patsubst darwin%,,$(HOST_KERNEL)),) | ||
HOST_DARWIN = 1 | ||
HOST_UNIX = 1 | ||
endif | ||
ifeq ($(patsubst freebsd%,,$(HOST_KERNEL)),) | ||
HOST_FREEBSD = 1 | ||
HOST_UNIX = 1 | ||
endif | ||
ifeq ($(patsubst netbsd%,,$(HOST_KERNEL)),) | ||
HOST_NETBSD = 1 | ||
HOST_UNIX = 1 | ||
endif | ||
ifeq ($(HOST_KERNEL), linux) | ||
HOST_LINUX = 1 | ||
HOST_UNIX = 1 | ||
endif | ||
ifeq ($(patsubst solaris%,,$(HOST_KERNEL)),) | ||
HOST_SOLARIS = 1 | ||
HOST_UNIX = 1 | ||
endif | ||
endif |