mirror of
https://github.com/NixOS/nix
synced 2025-07-07 01:51:47 +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
|
@ -6,6 +6,8 @@ nix-daemon_SOURCES := $(d)/nix-daemon.cc
|
|||
|
||||
nix-daemon_LIBS = libmain libstore libutil libformat
|
||||
|
||||
nix-daemon_LDFLAGS = -pthread
|
||||
|
||||
ifeq ($(OS), SunOS)
|
||||
nix-daemon_LDFLAGS += -lsocket
|
||||
endif
|
||||
|
|
|
@ -6,6 +6,6 @@ nix-store_SOURCES := $(wildcard $(d)/*.cc)
|
|||
|
||||
nix-store_LIBS = libmain libstore libutil libformat
|
||||
|
||||
nix-store_LDFLAGS = -lbz2
|
||||
nix-store_LDFLAGS = -lbz2 -pthread
|
||||
|
||||
nix-store_CXXFLAGS = -DCURL=\"$(curl)\"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue