-
Notifications
You must be signed in to change notification settings - Fork 222
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
Bugfix for compilation under macOS #415
base: development
Are you sure you want to change the base?
Conversation
I don't really like the growth of our makefile, but I don't see any other way. Just one thing : could you maybe change it so that there's only one |
Pushed another attempt/variant: this one also checks if you are using default Does this looks better? |
Looks better to me :-) However, I'm not a huge fan of the Maybe we could try asking for |
My specific use case is RIOT-OS (#371). RIOT-OS has support for native (via GCC or CLang), which I currently use to develop the picoTCP port :-) Let me see if I can come up with something for |
+1 @basilfx , any news here? I've manually patched the Makefile and was able to build picotcp on MacOS. Would be great if this finds it way into the next release! |
@mhagmajer Sorry, I haven't found a good solution yet, due to the lack of time (work-work). |
Under macOS, one may observe the following errors:
This is due to:
du
does not support-b
under macOS. The same output can be emulated usingstat -f%z
size
does not obey the$(CROSS_COMPILE)
variable and it also does not know-t
. This is only the case using Xcode toolchain (not arm-gcc-embedded).This is probably a bug report with a PR to point at the right direction. I'm no Makefile expert, so I think this could be improved.