-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for ARM builds #134
Conversation
-> '-m32'/'-m64' flags are not supported there
You are going about it the wrong way - multi-arch build is only ever useful when the cpu is x86_64 (Linux /windows /mac os...) so you should conditioned on Anyway, why do you want to build freetype on pi when it is available system-wide (and "./configure && make" works?) |
I'd suggest you change it to conditioning on x86_64 / x64 (for windows too) instead ; but mixed-arch raspberrypi system exists (64-bit kernel with 32-bit userland, etc), though not yet common, so I am not sure what purpose this change serve. |
First thanks for the quick response. But I don't really get your point... My purpose is not a multiarch build on a x86_64 machine. I had just the issue, that if I manually build the freetype library with
I stumbled about this issue because for my project I needed a freetype library, that was compiled with |
You tested on |
I test on |
You should test on |
Ok, then I will switch the if-statement. Edit: Will do it after the Christmas holidays ;) |
The change, as is, is okay now, I think, but I just spotted a "problem" in the surrounding code: as I said, the special case is x86_64, not linux. People routinely use both 32-bit and 64-bit freetype on 64-bit (intel) windows too, and both 32-bit and 64-bit freetype on 64-bit Mac OS too, until OS X 15 (when they officially dropped 32-bit support, I think). So special-case'ing on linux seems wrong. Anyway, I would say merge this as is now. If somebody care enough about bi-arch on 64-bit windows and mac os x, they can add some more code later. |
gcc on Mingw and Mac OS X takes -m32/-m64 too, like their linux siblings. |
Thank you for approving this. |
Hello,
during the build process on a Raspberry Pi I got an error from cmake, that the
-m32
or-m64
flag is not supported on this platform.So I reworked the code to detect not only if the system is 32/64bit but also if it's an ARM system. There's also support for
aarch64
.