mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-02-21 01:21:27 +00:00
functions: use 'ln -sf' for softlinks
I should have just used ln -sf when I rewrote the custom locations change. BSD based systems don't have 'cp -s', so switch to using 'ln -sf'. Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
This commit is contained in:
parent
8460611d5f
commit
a9e5d4a12d
@ -671,7 +671,7 @@ CT_GetCustom() {
|
||||
elif [ "${component_location_type}" = "dir" ]; then
|
||||
CT_DoLog EXTRA "Got '${component_location}' from custom location"
|
||||
[ ! -d "${CT_SRC_DIR}/${component_name}-${component_version}" ] && \
|
||||
CT_DoExecLog DEBUG cp -as "${component_location}" \
|
||||
CT_DoExecLog DEBUG ln -sf "${component_location}" \
|
||||
"${CT_SRC_DIR}/${component_name}-${component_version}"
|
||||
|
||||
# Don't try to extract from source directory, it's extracted!
|
||||
|
Loading…
x
Reference in New Issue
Block a user