1
1
Fork 0
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:
Eelco Dolstra 2014-09-05 14:17:05 +02:00
parent afbdd55334
commit 075cfe3b97
5 changed files with 21 additions and 8 deletions

10
lib.mk
View file

@ -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