|
From: | Gary V. Vaughan |
Subject: | Re: -no_fixup_chains patch |
Date: | Fri, 5 Jul 2024 11:53:50 -0700 |
+ # Include functionality from bootstrap script funclib.sh + . $ac_aux_dir/funclib.sh Oh! My memory is poor… I had thought LT_INIT was already running: . "$abs_top_srcdir/build-aux/funclib.sh” Or even injecting funclib.sh content directly into the generated configure script in order to ensure definitions from funclib.sh at configure time, just like testsuite.at (and bootstrap, ltmain, libtoolize at runtime). It might make more sense to put that line somewhere in LT_INIT after abs_top_srcdir has been set so that all the functions from funclib.sh are available to simplify other configuration macros at configure time, although I worry about looking up the path to that script from other projects’ build scripts. Anyway, I think I prefer one of the following two approaches than this most recent patch of yours: 1. Arrange for m4 (i.e. autoconf) to inject the body of funclib.sh near the top of configure so that it’s functions can be used indiscriminately from the rest of libtool.m4 and open the door to many more simplifications where we currently rely on AS_ macros; 2. Always use AS_* macros at autoconf time to pull in exactly what shell functions are used (as_fn_append etc) on demand, and leave funclib.sh for ltmain, libtoolize et. al (i.e. same as your previous AS_VAR_APPEND patch). Sorry for adding confusion to this thread! Cheers, Gary |
[Prev in Thread] | Current Thread | [Next in Thread] |