mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-14 02:06:16 +02:00
Pass -pthread only for programs that need it
This commit is contained in:
parent
ece531d105
commit
bd91453bb1
3 changed files with 3 additions and 2 deletions
1
local.mk
1
local.mk
|
@ -5,7 +5,6 @@ endif
|
||||||
dist-files += configure config.h.in nix.spec
|
dist-files += configure config.h.in nix.spec
|
||||||
|
|
||||||
GLOBAL_CXXFLAGS += -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr
|
GLOBAL_CXXFLAGS += -I . -I src -I src/libutil -I src/libstore -I src/libmain -I src/libexpr
|
||||||
GLOBAL_LDFLAGS += -pthread
|
|
||||||
|
|
||||||
$(foreach i, config.h $(call rwildcard, src/lib*, *.hh), $(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
|
$(foreach i, config.h $(call rwildcard, src/lib*, *.hh), $(eval $(call install-file-in, $(i), $(includedir)/nix, 0644)))
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,8 @@ nix-daemon_SOURCES := $(d)/nix-daemon.cc
|
||||||
|
|
||||||
nix-daemon_LIBS = libmain libstore libutil libformat
|
nix-daemon_LIBS = libmain libstore libutil libformat
|
||||||
|
|
||||||
|
nix-daemon_LDFLAGS = -pthread
|
||||||
|
|
||||||
ifeq ($(OS), SunOS)
|
ifeq ($(OS), SunOS)
|
||||||
nix-daemon_LDFLAGS += -lsocket
|
nix-daemon_LDFLAGS += -lsocket
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -6,6 +6,6 @@ nix-store_SOURCES := $(wildcard $(d)/*.cc)
|
||||||
|
|
||||||
nix-store_LIBS = libmain libstore libutil libformat
|
nix-store_LIBS = libmain libstore libutil libformat
|
||||||
|
|
||||||
nix-store_LDFLAGS = -lbz2
|
nix-store_LDFLAGS = -lbz2 -pthread
|
||||||
|
|
||||||
nix-store_CXXFLAGS = -DCURL=\"$(curl)\"
|
nix-store_CXXFLAGS = -DCURL=\"$(curl)\"
|
||||||
|
|
Loading…
Reference in a new issue