[tlbuild] dvisvgm link errors when building with --with-system-libgs

Ken Brown kbrow1i at gmail.com
Thu Mar 16 13:01:53 CET 2017


On 3/15/2017 9:43 PM, Paul Vojta wrote:
> On Wed, Mar 15, 2017 at 11:14:22AM -0400, Ken Brown wrote:
>> On 3/10/2017 10:22 PM, Paul Vojta wrote:
>>> You're right.  It was probably the --disable-native-texlive-build
>>> option.  Sorry not to have mentioned that.
>> [...]
>>> With the patch applied, dvisvgm will successfully build (at least on
>>> my system, and probably most others) when --disable-native-texlive-build
>>> is used, but it doesn't change anything when --disable-native-texlive-build
>>> is not used.  Without the patch, I expect that the dvisvgm build
>>> (with --disable-native-texlive-build) will fail on all platforms that have
>>> a reasonably recent libgs installed.
>>
>> Hi Paul,
>>
>> I agree that something like your patch is needed with
>> --disable-native-texlive-build and with a recent enough Ghostscript.  My
>> only quibble is with this deletion:
>>
>> -		LIBS=`echo $LIBS | sed "s/-lgs //" $LIBS`
>>
>> That line is relevant when the installed Ghostscript is too old, so I'm not
>> sure why you're touching it.
>
> The macros KPSE_SAVE_FLAGS and KPSE_RESTORE_FLAGS save and restore LIBS
> and INCLUDES.  So any changes to LIBS between the two are discarded by
> KPSE_RESTORE_FLAGS.

Thanks, that's what I was missing.  It also explains why a standalone 
build of dvisvgm works while the build in the TL tree fails: LIBS 
includes -lgs in that case, and LIBGS_LIBS isn't needed.

Ken

Ken



More information about the tlbuild mailing list