-
Notifications
You must be signed in to change notification settings - Fork 43
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
Update compile.m to fix https://github.com/libprima/prima/issues/161 #162
Conversation
This is a workaround for #161, where MEX fails due to incompatibility between the new linker of Xcode 15 on macOS and Intel oneAPI 2023. The fix is to replace the linker option "-undefined error" with "-undefined dynamic_lookup". See also #158. Note that we have to modify `LDFLAGSVER`. Setting `LDFLAGS` or `LINKFLAGS` does not work, although the latter is suggested at https://www.mathworks.com/help/matlab/ref/mex.html.
% where MEX fails due to incompatibility between the new linker of Xcode 15 on macOS and Intel oneAPI 2023. | ||
% The fix is to replace the linker option "-undefined error" with "-undefined dynamic_lookup". | ||
% See also https://github.com/libprima/prima/issues/158. | ||
% Note that we have to modify `LDFLAGSVER`. Setting `LDFLAGS` or `LINKFLAGS` does not work, although |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
% where MEX fails due to incompatibility between the new linker of Xcode 15 on macOS and Intel oneAPI 2023. | ||
% The fix is to replace the linker option "-undefined error" with "-undefined dynamic_lookup". | ||
% See also https://github.com/libprima/prima/issues/158. | ||
% Note that we have to modify `LDFLAGSVER`. Setting `LDFLAGS` or `LINKFLAGS` does not work, although |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
% the latter is suggested at https://www.mathworks.com/help/matlab/ref/mex.html. | ||
linker_options = ''; | ||
if ismac && contains(compiler_configurations.Manufacturer, 'intel', 'IgnoreCase', true) % macOS with Intel compiler | ||
linker_options = 'LDFLAGSVER=$(echo $LDFLAGSVER | sed "s/-undefined error/-undefined dynamic_lookup/g")'; |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
% the latter is suggested at https://www.mathworks.com/help/matlab/ref/mex.html. | ||
linker_options = ''; | ||
if ismac && contains(compiler_configurations.Manufacturer, 'intel', 'IgnoreCase', true) % macOS with Intel compiler | ||
linker_options = 'LDFLAGSVER=$(echo $LDFLAGSVER | sed "s/-undefined error/-undefined dynamic_lookup/g")'; |
Check failure
Code scanning / check-spelling
Unrecognized Spelling Error
@check-spelling-bot Report🔴 Please reviewSee the 📂 files view, the 📜action log, or 📝 job summary for details. Unrecognized words (2)LDFLAGSVER To accept these unrecognized words as correct, you could run the following commands... in a clone of the [email protected]:libprima/prima.git repository curl -s -S -L 'https://raw.githubusercontent.com/check-spelling/check-spelling/main/apply.pl' |
perl - 'https://github.com/libprima/prima/actions/runs/7933597922/attempts/1' OR To have the bot accept them for you, reply quoting the following line: If the flagged items are 🤯 false positivesIf items relate to a ...
|
This is a workaround for #161, where MEX fails due to incompatibility between the new linker of Xcode 15 on macOS and Intel oneAPI 2023. The fix is to replace the linker option "-undefined error" with "-undefined dynamic_lookup". See also #158. Note that we have to modify
LDFLAGSVER
. SettingLDFLAGS
orLINKFLAGS
does not work, although the latter is suggested at https://www.mathworks.com/help/matlab/ref/mex.html.