Page MenuHomeFreeBSD

Use /lib:/usr/lib as default libs in mips64.
ClosedPublic

Authored by kan on May 14 2018, 4:23 PM.

Details

Reviewers
jhb
bapt
kan
Summary

gcc/config/mips/mips.h sets it to /lib64:/usr/lib64,
override that.

Test Plan

Build base/gcc with installed mips64-xtoolchain-gcc
fails unless this patch is applied: gcc cannot find crt1.o
and friends.

Diff Detail

Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 16584
Build 16496: arc lint + arc unit

Event Timeline

kan created this revision.May 14 2018, 4:23 PM
kan added inline comments.May 14 2018, 4:26 PM
devel/powerpc64-gcc/files/patch-gcc-freebsd-mips
414

mips/config.h also overrides n32 to /lib32:/usr/lib32, I do not know what needs to be done for that

cem removed a reviewer: cem.May 14 2018, 4:32 PM

Seems harmless but I have no interest in MIPS.

jhb added a comment.May 14 2018, 4:35 PM

I haven't gotten this far yet, but this seems to be working around multilib. I wonder if it's possible to make 'gcc -mabi=32' when built for mips64 to look in /usr/lib32.

Presumably you would be able to see this in the -print-search-dirs for mips64-gcc. I've been using mips-gcc to build mips64 which is why I haevn't seen this.

kan accepted this revision.May 15 2018, 3:11 PM
This revision is now accepted and ready to land.May 15 2018, 3:11 PM
kan closed this revision.May 15 2018, 3:12 PM