X-Git-Url: http://www.average.org/gitweb/?p=pdns-pipe-nmc.git;a=blobdiff_plain;f=build;h=c77b02430371ca51ce57b72380f889e7f321a99d;hp=d42537412a97b9a7019c561ce2e553e0fc2c78e5;hb=419d06258d71978c934398633a644c5842e83b92;hpb=9429c1e6a9dedaf8c8a4fb74d9a54eab554d7fff diff --git a/build b/build index d425374..c77b024 100755 --- a/build +++ b/build @@ -1,9 +1,14 @@ #!/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 -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" case $? in 0) ;;