Author: markt Date: Wed Aug 23 21:12:17 2017 New Revision: 1805960 URL: http://svn.apache.org/viewvc?rev=1805960&view=rev Log: Fix https://bz.apache.org/bugzilla/show_bug.cgi?id=60301 When building Tomcat Native, allow the user to override the libtool specified by APR but setting the LIBTOOL environment variable.
Modified: tomcat/native/trunk/native/Makefile.in tomcat/native/trunk/native/configure.in tomcat/native/trunk/xdocs/miscellaneous/changelog.xml Modified: tomcat/native/trunk/native/Makefile.in URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/Makefile.in?rev=1805960&r1=1805959&r2=1805960&view=diff ============================================================================== --- tomcat/native/trunk/native/Makefile.in (original) +++ tomcat/native/trunk/native/Makefile.in Wed Aug 23 21:12:17 2017 @@ -22,6 +22,7 @@ CFLAGS = @CFLAGS@ CPPFLAGS = @CPPFLAGS@ CC_OLD = @CC@ +LIBTOOL_OLD = @LIBTOOL@ # gets substituted into some targets TCNATIVE_MAJOR_VERSION=@TCNATIVE_MAJOR_VERSION@ @@ -52,6 +53,10 @@ ifneq ($(CC_OLD),$(CC)) CC=$(CC_OLD) endif +ifneq ($(LIBTOOL_OLD),$(LIBTOOL)) + LIBTOOL=$(LIBTOOL_OLD) +endif + LINK = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) -version-info $(TCNATIVE_LIBTOOL_VERSION) $(ALL_LDFLAGS) -o $@ CLEAN_SUBDIRS = test Modified: tomcat/native/trunk/native/configure.in URL: http://svn.apache.org/viewvc/tomcat/native/trunk/native/configure.in?rev=1805960&r1=1805959&r2=1805960&view=diff ============================================================================== --- tomcat/native/trunk/native/configure.in (original) +++ tomcat/native/trunk/native/configure.in Wed Aug 23 21:12:17 2017 @@ -101,6 +101,11 @@ dnl APR_SETIFNULL(CC, `$apr_config --cc`) APR_SETIFNULL(CPP, `$apr_config --cpp`) +dnl +dnl Default to the APR provided libtool but allow the user to override it +dnl +APR_SETIFNULL(LIBTOOL, `$apr_config --apr-libtool`) + AC_PROG_INSTALL dnl @@ -234,6 +239,7 @@ AC_SUBST(TCNATIVE_LDFLAGS) AC_SUBST(TCNATIVE_LIBS) AC_SUBST(CFLAGS) AC_SUBST(CPPFLAGS) +AC_SUBST(LIBTOOL) dnl copy apr's rules.mk into our build directory. if test ! -d ./build; then Modified: tomcat/native/trunk/xdocs/miscellaneous/changelog.xml URL: http://svn.apache.org/viewvc/tomcat/native/trunk/xdocs/miscellaneous/changelog.xml?rev=1805960&r1=1805959&r2=1805960&view=diff ============================================================================== --- tomcat/native/trunk/xdocs/miscellaneous/changelog.xml (original) +++ tomcat/native/trunk/xdocs/miscellaneous/changelog.xml Wed Aug 23 21:12:17 2017 @@ -66,6 +66,11 @@ <code>CC</code> if explicitly set. Patch provided by Michael Osipov. (markt) </fix> + <fix> + <bug>60301</bug>: When building Tomcat Native, allow the user to override + the libtool specified by APR but setting the <code>LIBTOOL</code> + environment variable. (markt) + </fix> </changelog> </section> <section name="Changes in 1.2.12"> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org