]> granicus.if.org Git - pdns/commitdiff
make static building work again
authorBert Hubert <bert.hubert@netherlabs.nl>
Sun, 16 Nov 2008 17:24:16 +0000 (17:24 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sun, 16 Nov 2008 17:24:16 +0000 (17:24 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1291 d19b8d6e-7fed-0310-83ef-9ca221ded41b

build-scripts/rpm-build-instruction
debian-pdns/rules

index d4c9178acf57e923e859e638b970d212e7b4d455..9da1ec6898dc0b9bceab607e28af28da25c5fec0 100755 (executable)
@@ -1,9 +1,10 @@
 #!/bin/sh
-LIBS="-lkrb5 -lk5crypto -lpgport -lgssapi_krb5 -lkrb5support -lgssapi_krb5 -lcom_err -lnsl -lresolv" \
+#LIBS="-lkrb5 -lk5crypto -lpgport -lgssapi_krb5 -lkrb5support -lgssapi_krb5 -lcom_err -lnsl -lresolv" \
 CC="ccache gcc" CXX="ccache g++" ./configure \
                --with-modules="mysql gmysql gpgsql gsqlite gsqlite3 pipe pdns geo" \
        --with-dynmodules="" \
        --enable-static-binaries \
+       --with-pgsql-lib=/opt/postgresql/lib --with-pgsql-includes=/opt/postgresql/include \
        --prefix=/usr \
        --sysconfdir=/etc/powerdns \
        --mandir=/usr/man/ \
index 6f1abb3fb0fa03c7534ef368514f5df27b3db6b6..18e074f028c2554b19f87d3796c688792806d5ca 100755 (executable)
@@ -2,8 +2,8 @@
 
 tmpdir         := $(shell pwd)/debian-pdns/tmp
 be_tmpdir      := $(shell pwd)/debian-pdns/tmp-backend
-backends       := opendbx ldap mysql pipe xdb gmysql gpgsql gsqlite gsqlite3
-debs           := opendbx ldap mysql pipe xdb pgsql sqlite sqlite3
+backends       := opendbx ldap mysql pipe gmysql gpgsql gsqlite gsqlite3
+debs           := opendbx ldap mysql pipe pgsql sqlite sqlite3
 
 binary-doc:
        -make -C pdns/docs html/index.html
@@ -42,7 +42,7 @@ binary-doc:
 
 
 build-static stamp-build-static:
-               ./configure LIBS="-lkrb5 -lk5crypto -lpgport -lgssapi_krb5 -lkrb5support -lgssapi_krb5 -lcom_err -lnsl -lresolv" \
+               ./configure \
                CC="ccache gcc" CXX="ccache g++"\
                --prefix=/usr \
                --libexecdir='$${prefix}/lib' \
@@ -50,6 +50,7 @@ build-static stamp-build-static:
                --sysconfdir=/etc/powerdns \
                --infodir='$${datadir}/info' \
                --mandir='$${datadir}/man' \
+               --with-pgsql-lib=/opt/postgresql/lib --with-pgsql-includes=/opt/postgresql/include \
                --with-modules="mysql gmysql gpgsql pipe pdns gsqlite gsqlite3 geo" \
                --with-dynmodules="" \
                --enable-static-binaries 
@@ -78,7 +79,6 @@ binary-main-prepare:
        make DESTDIR="$(tmpdir)" install
 
        rm -f "$(tmpdir)"/usr/bin/binpatch
-       rm -f "$(tmpdir)"/usr/bin/xdb-fill
        rm -f "$(tmpdir)"/usr/bin/zone2ldap
        rm -rf "$(tmpdir)"/usr/lib
 
@@ -133,9 +133,6 @@ binary-backend: stamp-build
        install -d -m 755 -o root -g root "$(tmpdir)"
        make DESTDIR="$(tmpdir)" install
 
-       strip --remove-section=.comment --remove-section=.note \
-               --strip-unneeded "$(tmpdir)"/usr/lib/powerdns/*.so \
-               "$(tmpdir)"/usr/bin/xdb-fill
        chmod 644 "$(tmpdir)"/usr/lib/powerdns/*
 
        set -e ; for be in $(debs) ; do \