Skip to content

Commit df3c2f5

Browse files
committed
Workaround for MinGW make install-strip.
1 parent b419f63 commit df3c2f5

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

script/10.1.0

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,17 @@ PATH="$BUILDDIR//tmpinst/bin:$PATH" \
336336

337337
${MAKE} j=4 "PATH=$BUILDDIR/tmpinst/bin:$PATH" || exit 1
338338

339+
# Workaround for MinGW. Need to fix some .deps/*.Plo files.
340+
# Fix from
341+
# e\:/build-djgpp\...
342+
# to
343+
# /e/build-djgpp\...
344+
345+
if uname|grep "^MINGW32" > /dev/null; then
346+
for i in i586-pc-msdosdjgpp/libssp/.deps/*.Plo; do sed -e 's/^ \([a-zA-Z]\)\\\:/ \/\1/' $i -i; done
347+
for i in i586-pc-msdosdjgpp/libquadmath/*/.deps/*.Plo; do sed -e 's/^ \([a-zA-Z]\)\\\:/ \/\1/' $i -i; done
348+
fi
349+
339350
${MAKE} install-strip || exit 1
340351

341352
echo "Copy long name executables to short name."

0 commit comments

Comments
 (0)