On 15 Jun 2025, at 18:56, Florian Weimer fw@deneb.enyo.de wrote:
- Rob Arthan:
On 24 May 2025, at 08:07, Florian Weimer fw@deneb.enyo.de wrote:
- Jerry James:
I maintain the Fedora polyml package. All Fedora packages are built with a standard set of flags, including "-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1" to build binaries with annobin (https://sourceware.org/annobin/). The polyml build stashes the flags that were used to build polyml itself into polyc; see the CFLAGS definition. I could use some guidance here. We can do one of two things.
There's a variant of %build_cflags called %extension_cflags. It contains just flags that can be hard-coded into build tools because they do not have dependencies on separate files. It would have to be used in addition to polyml's own defaults (which presumably includes -O2 -g at least), unlike %build_cflags.
The polyc script only runs g++ to link executables. So I would imagine from the clue in the name that redhat-annobin-cc1 won’t have any effect on it. Also I don’t think “-g" affects linking.
I suppose it's slightly misnamed, redhat-annobin-cc1 and the cc1_options specs clause it contains is also used for cc1plus.
I didn’t make myself clear: what I had in mind was that cc1 refers to the phase of the compiler that turns pre-processed source into assembler, so it runs prior to looking.
Regards,
Rob.
Poly/ML mailing list -- polyml@lists.polyml.org To unsubscribe send an email to polyml-leave@lists.polyml.org