From: Eugene Crosser Date: Sun, 20 Apr 2014 15:48:30 +0000 (+0400) Subject: update build script X-Git-Tag: 0.9.0.0~34 X-Git-Url: http://www.average.org/gitweb/?p=pdns-pipe-nmc.git;a=commitdiff_plain;h=bf6a214e1b52fff6dae06c6fca1fad478553f1ae update build script --- diff --git a/build b/build index a2eb755..319e038 100755 --- 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) ;;