Artifact cd8638903467e1c2c6f35a53aa295708e5f4648d780878ed36e82e9a08d382ef:
- File dist/GNUmakefile — part of check-in [8648683aba] at 2022-11-04 04:27:15 on branch trunk — fixes to make parsav build on modern nix (user: lexi, size: 500) [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 = $(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