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

Fixes for Darwin and Linux compatibility #172

Merged
merged 1 commit into from
Nov 22, 2024
Merged

Conversation

JustScreaming
Copy link

The following

if [[ `uname` -eq Darwin ]] ; then

fails under linux and defaults to true. Updated to work as expected under bash

Added a check to only add the Mac path PKG_CPPFLAGS if we are running Darwin else it fails to configure under linux.

if [[ `uname` -eq Darwin ]] ; then
    compflags=" ${compflags} -isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1 -stdlib=libc++ "
fi

to work with linux bash and not always default true, thus applying the flags.

Created an if statement to prepend this

PKG_CPPFLAGS=" ${PKG_CPPFLAGS} -I"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1""

if the uname is Darwin so it will configure under linux.
@cookpa cookpa merged commit 13d9522 into ANTsX:master Nov 22, 2024
1 check passed
@cookpa
Copy link
Member

cookpa commented Nov 22, 2024

TYVM

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.

2 participants