summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-10-09 11:32:31 +0300
committerNoel Grandin <noel@peralex.com>2014-10-09 11:35:51 +0300
commit11044cbf0d92fea3cb55ba46d81f8fe51b1ec0ab (patch)
tree0c1af12aea9d0062ca7fef453152f61a71805184 /solenv
parenta0a919d2b541c415ad9b81d2ee91895bf106e9bb (diff)
fix 'line too long' link error on Windows with merged-libs
Change-Id: I76457af34d5a034197d1b7d847a7120518f44383
Diffstat (limited to 'solenv')
-rw-r--r--solenv/gbuild/platform/com_MSC_class.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/solenv/gbuild/platform/com_MSC_class.mk b/solenv/gbuild/platform/com_MSC_class.mk
index 390a7b87ac3c..b4dc1e32c5a3 100644
--- a/solenv/gbuild/platform/com_MSC_class.mk
+++ b/solenv/gbuild/platform/com_MSC_class.mk
@@ -136,8 +136,7 @@ gb_LinkTarget_get_linksearchpath_for_layer = \
# avoid fatal error LNK1170 for Library_merged
define gb_LinkTarget_MergedResponseFile
-cut -f -1000 -d ' ' $${RESPONSEFILE} > $${RESPONSEFILE}.1 && \
-cut -f 1001- -d ' ' $${RESPONSEFILE} >> $${RESPONSEFILE}.1 && \
+cat $${RESPONSEFILE} | sed 's/ /\n/g' | grep -v '^$$' > $${RESPONSEFILE}.1 && \
mv $${RESPONSEFILE}.1 $${RESPONSEFILE} &&
endef