depot/third_party/nixpkgs/pkgs/os-specific/bsd/netbsd/compat-setup-hook.sh

7 lines
235 B
Bash
Raw Normal View History

# See pkgs/build-support/setup-hooks/role.bash
getHostRole
export NIX_${role_pre}LDFLAGS+=" -lnbcompat"
export NIX_${role_pre}CFLAGS_COMPILE+=" -DHAVE_NBTOOL_CONFIG_H"
export NIX_${role_pre}CFLAGS_COMPILE+=" -include nbtool_config.h"