[commit: ghc] master: Build system fix: really print the number of symbols in DLLs (78544b7)

Ian Lynagh igloo at earth.li
Sat Apr 6 21:37:17 CEST 2013


Repository : http://darcs.haskell.org/ghc.git/

On branch  : master

https://github.com/ghc/ghc/commit/78544b76f2596fb6137a6d70858fe50e93b49a7d

>---------------------------------------------------------------

commit 78544b76f2596fb6137a6d70858fe50e93b49a7d
Author: Ian Lynagh <igloo at earth.li>
Date:   Sat Apr 6 18:44:54 2013 +0100

    Build system fix: really print the number of symbols in DLLs

>---------------------------------------------------------------

 rules/build-package-way.mk | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rules/build-package-way.mk b/rules/build-package-way.mk
index 894f44e..724a698 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
 





More information about the ghc-commits mailing list