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

Allow ${INSTALLDIR}_build_target to be customized #1

Merged
merged 1 commit into from Feb 17, 2016

Conversation

mistydemeo
Copy link
Contributor

The motivation for this is to make it easier to include this in the Homebrew package manager for OS X.

Homebrew builds packages using OS X's sandbox, configured to only allow writes to the target directory (e.g. INSTALLDIR) and to the temporary build directory. The step in build-canadian.sh which moves the cross-compiler from ${INSTALLDIR} to ${INSTALLDIR}_build_target results in the cross-compiler being moved outside one of the sandbox-writable areas, so the install would fail. This patch lets the build_target directory be configured via the INSTALLDIR_BUILD_TARGET environment variable, which defaults to the same path as it does currently.

I have a package for saturn-sdk-gcc-sh2 already, which works if the sandbox is disabled; I'm planning to move it into one of the official Homebrew repositories if this patch is accepted. Thanks!

@RedRingRico
Copy link
Contributor

Thank you for the fix. I unfortunately do not have Mac OS X for testing so this helps out a lot. I'm currently building the i686 GNU/Linux version on x86_64 GNU/Linux. As soon as it passes, I'll merge your changes.

RedRingRico pushed a commit that referenced this pull request Feb 17, 2016
Allow ${INSTALLDIR}_build_target to be customized
@RedRingRico RedRingRico merged commit 9d33e4d into SaturnSDK:master Feb 17, 2016
@mistydemeo
Copy link
Contributor Author

Thanks!

@mistydemeo mistydemeo deleted the installdir_build_target branch February 17, 2016 21:16
mistydemeo added a commit to mistydemeo/homebrew-formulae that referenced this pull request Feb 17, 2016
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