Skip to content

Commit

Permalink
postgresql-10: fix static
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberb committed Nov 16, 2021
1 parent 551db7b commit e71141c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions postgresql-10/build.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd ${DIR}
Expand All @@ -21,7 +21,10 @@ tar xjf postgresql-${VERSION}.tar.bz2
cd postgresql-${VERSION}
rm -rf ${PREFIX}

./configure --prefix ${PREFIX} LDFLAGS=-static
./configure --prefix ${PREFIX}
make world
make install
./configure --prefix ${PREFIX} LDFLAGS=-static --disable-shared
make world
make install

Expand Down

0 comments on commit e71141c

Please sign in to comment.