···33# This runs as root,
44# with the current directory set to ${CMAKE_INSTALL_PREFIX}/libexec/darling
5566-for file in /etc/ld.so.conf $(find /etc/ld.so.conf.d/ -type f); do
66+for file in /etc/ld.so.conf $(find /etc/ld.so.conf.d/ -type f -o -type l); do
77 # Copy lines from e.g. /etc/ld.so.conf into ./etc/ld.so.conf,
88 # prepending "/Volumes/SystemRoot" to each line that starts with a slash
99 awk '/^\// { print "/Volumes/SystemRoot" $0 }; /^[^\/]/' $file > .$file