Skip to content
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

Makefile change for cross compiling. #3176

Merged
merged 1 commit into from
Jul 16, 2023

Conversation

superxkooda
Copy link
Sponsor Contributor

Working from wsl and compiling for windows this change makes it much easier to compile a static library for windows on arm. To compile a static library for windows on arm:

make PLATFORM=PLATFORM_DESKTOP TARGET_OS=WINDOWS CROSS_CC=/llvm/bin/aarch64-w64-mingw32-gcc CROSS_AR=/llvm/bin/aarch64-w64-mingw32-ar

This does not work to compile a shared library yet, only static.

Working from wsl and compiling for windows this change makes it much easier to compile a static library for windows on arm.
To compile a static library for windows on arm:

```
make PLATFORM=PLATFORM_DESKTOP TARGET_OS=WINDOWS CROSS_CC=/llvm/bin/aarch64-w64-mingw32-gcc CROSS_AR=/llvm/bin/aarch64-w64-mingw32-ar
```

This does not work to compile a shared library yet, only static.
@raysan5 raysan5 merged commit 70286c7 into raysan5:master Jul 16, 2023
@raysan5
Copy link
Owner

raysan5 commented Jul 16, 2023

@superxkooda nice addition! thanks!

superxkooda added a commit to superxkooda/raylib that referenced this pull request Jul 16, 2023
This reverts commit 70286c7.

Turns out this is not needed!
Can be done by running make like so:
```
make PLATFORM=PLATFORM_DESKTOP OS=Windows_NT CC=/llvm/bin/aarch64-w64-mingw32-gcc AR=/llvm/bin/aarch64-w64-mingw32-ar
```
raysan5 added a commit that referenced this pull request Jul 16, 2023
futureapricot pushed a commit to futureapricot/raylib that referenced this pull request Oct 4, 2023
Working from wsl and compiling for windows this change makes it much easier to compile a static library for windows on arm.
To compile a static library for windows on arm:

```
make PLATFORM=PLATFORM_DESKTOP TARGET_OS=WINDOWS CROSS_CC=/llvm/bin/aarch64-w64-mingw32-gcc CROSS_AR=/llvm/bin/aarch64-w64-mingw32-ar
```

This does not work to compile a shared library yet, only static.
futureapricot pushed a commit to futureapricot/raylib that referenced this pull request Oct 4, 2023
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.

None yet

2 participants