Artifact 1a1f87c1d5fb1632f61f10f3d6ab7a4cb04fd10294bd493cd904c30324ee9c8f:
- File dist/GNUmakefile — part of check-in [d248dc5965] at 2021-01-19 22:02:23 on branch trunk — add dist mechanism (user: lexi, size: 517) [annotate] [blame] [check-ins using]
# we need to detect the environment and set the runtime path appropriately
ifndef NIX_STORE
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