update build script
authorEugene Crosser <crosser@average.org>
Sun, 20 Apr 2014 15:48:30 +0000 (19:48 +0400)
committerEugene Crosser <crosser@average.org>
Sun, 20 Apr 2014 15:48:30 +0000 (19:48 +0400)
build

diff --git a/build b/build
index a2eb755c07744f713ab5983a1166e8107def619a..319e038d4041bdf6992342cf6332bde4b05c6e1d 100755 (executable)
--- a/build
+++ b/build
@@ -1,9 +1,13 @@
 #!/bin/sh
 
 file="pdns-pipe-nmc"
-sfx="`uname -m`.`date +%Y-%m-%d`.git-`git rev-parse --verify HEAD | cut -c 1-7`"
+sfx="linux-glibc6.`uname -m`.`date +%Y-%m-%d`.git-`git rev-parse --verify HEAD | cut -c 1-7`"
 echo "Making $file.$sfx"
 
+# tried this:
+#ghc --make -static -optc-static -optl-shared-libgcc -optl-static -optl-pthread
+# but cannot make it "only glibc is shared". And with static glibc,
+# getaddrinfo does not work on systems with different glibc.
 ghc --make "$file"
 case $? in
 0) ;;