3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
else ifndef NIX_PATH
else
distro = nix
endif
ifndef runtime
ifeq ($(distro),nix)
rt-pfx = $(shell nix path-info nixos.glibc)/lib
else ifeq ($(shell test -e /usr/local/lib/crt1.o; echo $$?),0)
rt-pfx = /usr/local/lib
else ifeq ($(shell test -e /lib/crt1.o; echo $$?),0)
rt-pfx = /lib
endif
runtime = $(rt-pfx)/crt1.o $(rt-pfx)/crti.o $(rt-pfx)/crtn.o
endif
include makefile
|
|
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
else ifndef NIX_PATH
else
distro = nix
endif
ifndef runtime
ifeq ($(distro),nix)
rt-pfx = $(inputPath-libc)/lib
else ifeq ($(shell test -e /usr/local/lib/crt1.o; echo $$?),0)
rt-pfx = /usr/local/lib
else ifeq ($(shell test -e /lib/crt1.o; echo $$?),0)
rt-pfx = /lib
endif
runtime = $(rt-pfx)/crt1.o $(rt-pfx)/crti.o $(rt-pfx)/crtn.o
endif
include makefile
|