postfix: fix musl compatibility 1480/head
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 26 Jun 2015 12:51:16 +0000 (14:51 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 26 Jun 2015 12:55:33 +0000 (14:55 +0200)
commitabcadcbedea6fd6167022c008524ce99279d210a
tree4c5c437a8902253c836ef895b015b6271ec75c17
parent3788dd697b642c09eb6fb868e07b045453ab60d1
postfix: fix musl compatibility

The current package patches `makedefs` to probe for the existance
of the `nsl` and `resolv` libraries but uses the wrong variables
for the prefix, leading to `makedefs` probing the host directories,
not the staging dir ones.

Replace `$PKG_BUILD_DIR` with `$STAGING_DIR` to perform the library
tests in the correct directory.

Fixes the following error spotted by doing test builds against musl
which does not provide a `libnsl`:

    .../mips-openwrt-linux-musl/bin/ld: cannot find -lnsl
    collect2: error: ld returned 1 exit status
    make: *** [master] Error 1

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
mail/postfix/Makefile
mail/postfix/patches/500-crosscompile.patch