Skip to content

Configurations/10-main.conf: correct AIX targets. - #5713

Closed
dot-asm wants to merge 1 commit into
openssl:masterfrom
dot-asm:aix-build-issues
Closed

dot-asm wants to merge 1 commit into
openssl:masterfrom
dot-asm:aix-build-issues

Conversation

@dot-asm

@dot-asm dot-asm commented Mar 21, 2018

Copy link
Copy Markdown
Contributor

I'm adding WIP, because it's just one way to solve the problem, and it's open question if it's more most suitable. See #5659 for background info. On additional not, manual says that ranlib needs -X option too. I don't seem to have the problem, but it might be problematic on older systems...

@levitte

levitte commented Mar 21, 2018

Copy link
Copy Markdown
Member

I think this solution has merits. The other would be to change that definition of ARFLAGS in the Makefile template to also include $target{arflags}, but that seems a bit over the top for the moment. So I would say that you can take this out of WIP.

@mattcaswell mattcaswell added this to the 1.1.1 milestone Mar 21, 2018
@dot-asm dot-asm changed the title WIP: Configurations/10-main.conf: correct AIX targets. Configurations/10-main.conf: correct AIX targets. Mar 21, 2018
@dot-asm

dot-asm commented Mar 21, 2018

Copy link
Copy Markdown
Contributor Author

WIP is removed, I've verified this with aix-gcc and aix64-gcc...

@richsalz richsalz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or wait for @levitte to formally say it's fine :)

@dot-asm dot-asm mentioned this pull request Mar 21, 2018
@dot-asm

dot-asm commented Mar 22, 2018

Copy link
Copy Markdown
Contributor Author

On related side note, I feel that I'd prefer to harmonize usage of some of the parameters. As discussed in referred issue, there are arflags and ARFLAGS. Then there are ar and AR, ranlib and RANLIB, maybe something else. One case should be sufficient in all these cases.

BTW, on side note to side note. My understanding is that one can omit CC => sub { env('CC') } and ranlib => sub { env('RANLIB') } from uClinux targets. Because that's how it works behind curtains now anyway...

@levitte

levitte commented Mar 22, 2018

Copy link
Copy Markdown
Member

On related side note, I feel that I'd prefer to harmonize usage of some of the parameters. As discussed in referred issue, there are arflags and ARFLAGS. Then there are ar and AR, ranlib and RANLIB, maybe something else. One case should be sufficient in all these cases.

I agree, with an exception... for flags, we keep the user overridable ones in upper case attributes and the non-overridable ones in lower case attributes. How that matters for flags to ar is up to us to decide.

BTW, on side note to side note. My understanding is that one can omit CC => sub { env('CC') } and ranlib => sub { env('RANLIB') } from uClinux targets. Because that's how it works behind curtains now anyway...

100% correct.

@dot-asm

dot-asm commented Mar 22, 2018

Copy link
Copy Markdown
Contributor Author

we keep the user overridable ones in upper case attributes and the non-overridable ones in lower case attributes.

It's totally appropriate for cflags and alike, but I suggest that it's an overkill for arflags and alike. In other words I'm talking about harmonization specifically for flags/attributes like arflags, not for all flags.

On second thought one might find having for example ranlib vs. RANLIB usable. (Once again, for example). But then it should be possible to actually "wire" ranlib directly into rule. In mean if RANLIB is defined, then rule would invoke $(RANLIB), but if ranlib is defined, then rule should invoke specifically $target{ranlib}, i.e. without referencing the make variable. So I suppose one can also put it as "harmonization to upper case" vs. "hardwiring lower-case into rules".

dot-asm pushed a commit to dot-asm/openssl that referenced this pull request Mar 22, 2018
Reviewed-by: Rich Salz <[email protected]>
Reviewed-by: Richard Levitte <[email protected]>
(Merged from openssl#5713)
@dot-asm dot-asm closed this Mar 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants