mirror of
https://github.com/NixOS/nix.git
synced 2025-11-25 19:51:00 +01:00
Add support for using a build directory
This commit is contained in:
parent
afbdd55334
commit
075cfe3b97
5 changed files with 21 additions and 8 deletions
10
lib.mk
10
lib.mk
|
|
@ -25,6 +25,16 @@ sysconfdir ?= $(prefix)/etc
|
|||
mandir ?= $(prefix)/share/man
|
||||
|
||||
|
||||
# Initialise support for build directories.
|
||||
builddir ?=
|
||||
|
||||
ifdef builddir
|
||||
buildprefix = $(builddir)/
|
||||
else
|
||||
buildprefix =
|
||||
endif
|
||||
|
||||
|
||||
# Pass -fPIC if we're building dynamic libraries.
|
||||
BUILD_SHARED_LIBS ?= 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue