X-Git-Url: http://www.average.org/gitweb/?p=pdns-pipe-nmc.git;a=blobdiff_plain;f=build;h=004b9736533e3ff802c5e1258664f67a64102e30;hp=319e038d4041bdf6992342cf6332bde4b05c6e1d;hb=2bb37cd8f3ac1737130aa57133806361dcd2ac9d;hpb=bf6a214e1b52fff6dae06c6fca1fad478553f1ae diff --git a/build b/build index 319e038..004b973 100755 --- a/build +++ b/build @@ -1,14 +1,15 @@ #!/bin/sh file="pdns-pipe-nmc" -sfx="linux-glibc6.`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 describe`" echo "Making $file.$sfx" # tried this: -#ghc --make -static -optc-static -optl-shared-libgcc -optl-static -optl-pthread +#ghc --make -static -optc-static -optl-shared-libgcc -optl-static \ +# -optl-pthread -pgml g++ "$file" # but cannot make it "only glibc is shared". And with static glibc, # getaddrinfo does not work on systems with different glibc. -ghc --make "$file" +cabal build case $? in 0) ;; *) echo build falied; exit 1 ;;