Skip to content

Commit 85befff

Browse files
committed
fixup curl map/def dirs for gnu make
1 parent 6c8c588 commit 85befff

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

curl.sh

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -419,14 +419,23 @@ _VER="$1"
419419
420420
# Manual copy to DESTDIR
421421
422+
# These custom outputs end up in different directories depending on make tool
423+
if [ "${_MK}" = 'ninja' ]; then
424+
_out_lib=''
425+
_out_src=''
426+
else
427+
_out_lib='lib/'
428+
_out_src='src/'
429+
fi
430+
422431
if [ "${_OS}" = 'win' ]; then
423-
cp -p "${_BLDDIR}/${_DEF_NAME}" "${_PP}"/bin/
432+
cp -p "${_BLDDIR}/${_out_lib}${_DEF_NAME}" "${_PP}"/bin/
424433
fi
425434
426435
if [ "${CW_MAP}" = '1' ]; then
427-
cp -p "${_BLDDIR}/${_MAP_NAME_LIB}" "${_PP}/${DYN_DIR}/"
436+
cp -p "${_BLDDIR}/${_out_lib}${_MAP_NAME_LIB}" "${_PP}/${DYN_DIR}/"
428437
if [[ "${_CONFIG}" != *'nocurltool'* ]]; then
429-
cp -p "${_BLDDIR}/${_MAP_NAME_BIN}" "${_PP}"/bin/
438+
cp -p "${_BLDDIR}/${_out_src}${_MAP_NAME_BIN}" "${_PP}"/bin/
430439
fi
431440
fi
432441

0 commit comments

Comments
 (0)