]> www.average.org Git - pdns-pipe-nmc.git/blob - build
make SRV work again
[pdns-pipe-nmc.git] / build
1 #!/bin/sh
2
3 file="pdns-pipe-nmc"
4 sfx="linux-glibc6.`uname -m`.`date +%Y-%m-%d`.git-`git describe`"
5 echo "Making $file.$sfx"
6
7 # tried this:
8 #ghc --make -static -optc-static -optl-shared-libgcc -optl-static \
9 #           -optl-pthread -pgml g++ "$file"
10 # but cannot make it "only glibc is shared". And with static glibc,
11 # getaddrinfo does not work on systems with different glibc.
12 #
13 # To build with ghc, run this:
14 #ghc --make -optP-include -optPdist/build/autogen/cabal_macros.h "$file"
15 # but it is still necessary to run `cabal configure` before to generate
16 # the file `dist/build/autogen/cabal_macros.h`.
17
18 cabal build
19 case $? in
20 0) ;;
21 *) echo build falied; exit 1 ;;
22 esac
23 mv "dist/build/$file/$file" "$file.$sfx" || exit 1
24 gpg --detach-sign "$file.$sfx"