Skip to content

Commit 8ddd9df

Browse files
authored
Update build-gnu.sh
1 parent c6f9dab commit 8ddd9df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

util/build-gnu.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,12 +133,12 @@ cd -
133133
# Pass the feature flags to make, which will pass them to cargo
134134
# The GNU tests rename install to ginstall to avoid confusion with the make target
135135
"${MAKE}" UTILS=install PROFILE="${UU_MAKE_PROFILE}" CARGOFLAGS="${CARGO_FEATURE_FLAGS}"
136-
cp ${UU_BUILD_DIR}/install ${UU_BUILD_DIR}/ginstall
136+
ln ${UU_BUILD_DIR}/install ${UU_BUILD_DIR}/ginstall
137137
"${MAKE}" SKIP_UTILS=install MULTICALL=y PROFILE="${UU_MAKE_PROFILE}" CARGOFLAGS="${CARGO_FEATURE_FLAGS}"
138138

139139
chcon -t bin_t "${UU_BUILD_DIR}/coreutils" || :
140140
for binary in $(${UU_BUILD_DIR}/coreutils --list); do
141-
(cd ${UU_BUILD_DIR} && ln -vf coreutils "$binary")
141+
(cd ${UU_BUILD_DIR} && cp -v --remove-destination coreutils "$binary")
142142
restorecon "${UU_BUILD_DIR}/${binary}" 2>/dev/null || true
143143
done
144144
touch g

0 commit comments

Comments
 (0)