| @@ -1,13 +1,20 @@ | | | @@ -1,13 +1,20 @@ |
1 | $NetBSD: patch-aa,v 1.6 2013/12/10 05:47:59 obache Exp $ | | 1 | $NetBSD: patch-aa,v 1.7 2013/12/10 08:27:06 obache Exp $ |
| | | 2 | |
| | | 3 | * Use libtool in the wrapper directory instead of the one installed by |
| | | 4 | apr. Otherwise, dependency_libs in libaprutil-1.la is set incorrectly. |
| | | 5 | |
| | | 6 | Don't let the build's LDFLAGS be polluted by what provides apr, because apr |
| | | 7 | doesn't know about all dependencies of apr-util. Otherwise the final binary |
| | | 8 | wouldn't have the proper RPATHs. |
2 | | | 9 | |
3 | --- configure.orig 2013-11-13 16:41:32.000000000 +0000 | | 10 | --- configure.orig 2013-11-13 16:41:32.000000000 +0000 |
4 | +++ configure | | 11 | +++ configure |
5 | @@ -24308,7 +24308,7 @@ case $host in | | 12 | @@ -24308,7 +24308,7 @@ case $host in |
6 | < $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk | | 13 | < $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk |
7 | ;; | | 14 | ;; |
8 | *) | | 15 | *) |
9 | - cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk | | 16 | - cp $APR_BUILD_DIR/apr_rules.mk $abs_builddir/build/rules.mk |
10 | + sed -e 's:^LIBTOOL=.*:LIBTOOL=$(WRAPPER_DIR)/bin/libtool:' -e "s:^LDFLAGS=.*:LDFLAGS=${LDFLAGS}:" $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk | | 17 | + sed -e 's:^LIBTOOL=.*:LIBTOOL=$(WRAPPER_DIR)/bin/libtool:' -e "s:^LDFLAGS=.*:LDFLAGS=${LDFLAGS}:" $APR_BUILD_DIR/apr_rules.mk > $abs_builddir/build/rules.mk |
11 | ;; | | 18 | ;; |
12 | esac | | 19 | esac |
13 | | | 20 | |