Skip to content

Commit

Permalink
Introduce $(build_shlibdir)
Browse files Browse the repository at this point in the history
Abstracts away the fact that Windows wants shared libraries to be in $(bindir) whereas other operating systems prefer their shared libraries and executables separated
  • Loading branch information
staticfloat committed Feb 8, 2014
1 parent 43e8d16 commit 50deb6e
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 77 deletions.
7 changes: 7 additions & 0 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ build_datarootdir = $(build_prefix)/share
build_includedir = $(build_prefix)/include
build_sysconfdir = $(build_prefix)/etc

# On Windows, we want shared library files to end up in $(build_bindir), instead of $(build_libdir)
ifeq ($(OS),WINNT)
build_shlibdir = $(build_bindir)
else
build_shlibdir = $(build_libdir)
endif

# This used for debian packaging, to conform to library layout guidelines
ifeq ($(MULTIARCH_INSTALL), 1)
MULTIARCH = $(shell gcc -print-multiarch)
Expand Down
Loading

0 comments on commit 50deb6e

Please sign in to comment.