summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2013-04-06 18:44:54 +0100
committerIan Lynagh <igloo@earth.li>2013-04-06 18:44:54 +0100
commit78544b76f2596fb6137a6d70858fe50e93b49a7d (patch)
treee4978ed04b81e9c3b01595cbda8156f28a64b7b3 /rules
parent5df7cf32efd7d2200e3fd4f77825087095e1052f (diff)
downloadhaskell-78544b76f2596fb6137a6d70858fe50e93b49a7d.tar.gz
Build system fix: really print the number of symbols in DLLs
Diffstat (limited to 'rules')
-rw-r--r--rules/build-package-way.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/build-package-way.mk b/rules/build-package-way.mk
index 894f44e418..724a698666 100644
--- a/rules/build-package-way.mk
+++ b/rules/build-package-way.mk
@@ -158,7 +158,7 @@ define build-dll
-no-auto-link-packages \
-o $6
# Now check that the DLL doesn't have too many symbols. See trac #5987.
- echo -n "Number of symbols in $6: "; $(OBJDUMP) -p $6 | sed -n "1,/^.Ordinal\/Name Pointer/ D; p; /^$$/ q" | tail -n +2 | wc -l
+ SYMBOLS=`$(OBJDUMP) -p $6 | sed -n "1,/^.Ordinal\/Name Pointer/ D; p; /^$$/ q" | tail -n +2 | wc -l`; echo "Number of symbols in $6: $$SYMBOLS"
case `$(OBJDUMP) -p $6 | sed -n "1,/^.Ordinal\/Name Pointer/ D; p; /^$$/ q" | grep "\[ *0\]" | wc -l` in 1) echo DLL $6 OK;; 0) echo No symbols in DLL $6; exit 1;; [0-9]*) echo Too many symbols in DLL $6; $(OBJDUMP) -p $6 | sed -n "1,/^.Ordinal\/Name Pointer/ D; p; /^$$/ q" | tail; exit 1;; *) echo bad DLL $6; exit 1;; esac
endef