apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From olli hauer <oha...@gmx.de>
Subject [patch] apr-1.4.4/Makefile.in ( top_builddir variable )
Date Mon, 16 May 2011 17:19:57 GMT
Hi,

I just run into an issue with the new apr_rules.mk
The new top_builddir variable is not replaced like apr_build(dir|ers)
variable. This make breaks for example the tomcat-native build, since
the var LIBTOOL points to the real build location of apr.

without patch:
 top_builddir=/work/a/ports/devel/apr1/work/apr-1.4.4

with patch:
 top_builddir=/usr/local/share/apr/build-1


The following patch fix tis issue.

 olli


--- ./apr-1.4.4/Makefile.in.orig
+++ ./apr-1.4.4/Makefile.in
@@ -66,7 +66,8 @@

 # Create apr_rules.mk suitable for the install tree
 build/apr_rules.out: build/apr_rules.mk
-       sed 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' < build/apr_rules.mk
> $@
+       sed -e 's,^\(apr_build.*=\).*$$,\1$(installbuilddir),' \
+       -e 's,^\(top_build.*=\).*$$,\1$(installbuilddir),' < build/apr_rules.mk > $@

 install: $(TARGETS)
        $(APR_MKDIR) $(DESTDIR)$(libdir) $(DESTDIR)$(bindir)
$(DESTDIR)$(installbuilddir) \

Mime
View raw message