The parallel compilation flag ("-j") causes non-deterministic issues when building SDL, randomly failing on SDL_Log, SDL_Surface, etc. When that flag is removed, the process runs on background and finishes building SDL after the rest of the build has finished (the resulting APK is not usable).
The following expression works on my environment, but disables parallel compilation and does not generate an error file (it relies on standard output):
On fusion/fusion.scm:237, the following command is issued:
(unless (zero? (shell-command (string-append (android-ndk-build-path) " -j -C " (android-directory) " &>ndk-log")))
The parallel compilation flag ("-j") causes non-deterministic issues when building SDL, randomly failing on SDL_Log, SDL_Surface, etc. When that flag is removed, the process runs on background and finishes building SDL after the rest of the build has finished (the resulting APK is not usable).
The following expression works on my environment, but disables parallel compilation and does not generate an error file (it relies on standard output):
(shell-command (string-append (android-ndk-build-path) " -C " (android-directory)))