RJVB / lnxports

A "local port repository" for use with MacPorts on Linux, overriding ports from the main repository.
4 stars 1 forks source link

gcc12 port seems to hardcode x86_64 #31

Open barracuda156 opened 5 days ago

barracuda156 commented 5 days ago

This is used unconditionally. I guess, this is wrong:

https://github.com/RJVB/lnxports/blob/1090c63b3ba677ac9b2e64551d0f9a13349e8428/lang/gcc12/Portfile#L554-L560

P. S. BTW, what is *-pc-linux-*?

RJVB commented 5 days ago

On Monday September 23 2024 11:33:23 Sergey Fedorov wrote:

This is used unconditionally. I guess, this is wrong:

Well, it isn't on the usual hardware ;) Pushing a commit that tries to guess the right string, let me know if it works

P. S. BTW, what is *-pc-linux-*?

I suppose "a" PC running linux ...

barracuda156 commented 5 days ago

I think MacPorts has [finally] right triples now: powerpc-* is not ppc-* anymore (well, I fixed that), and by default it falls to build_arch, so even riscv64 should be set correctly.

I suppose "a" PC running linux ...

So this is supposed to be always right and detached from the triple being used (whether it is “unknown-linux” or some specific one)?