[tlbuild] building problems on s390x

Peter Breitenlohner peb at mppmu.mpg.de
Sat Jul 26 13:05:06 CEST 2014


On Sat, 26 Jul 2014, Norbert Preining wrote:

> back then we had a problem with building TL on s390 with gcc 4.9.
> It turned out that using -O2 was bad, and using -O1 fixed it.
>
> Now, I have even found that I only need to recompile
> 	pdftex0.c
> with -O1, all others can be compiled with -O2.
>
> Is there a way to achieve this by hacking in the .am files?
>
> If it is not possible for one file, then at least all the files from
> pdftexdir with -O1, but the rest wiht -O2.

Hi Norbert,

since the -O2 is most probably from CFLAGS that always come last (the
user is always right) I see no way to do that via the .am file.

But you can modify the generated Makefile.in and change the rules to build
pdftex-pdftex0.o from pdftex0.c replacing '$(CFLAGS)' by '$(CFLAGS) -O1'

Regards
Peter



More information about the tlbuild mailing list