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

Added option to enable flat namespace on macOS #762

Merged
merged 5 commits into from
Nov 21, 2022

Conversation

ACSimon33
Copy link
Contributor

@ACSimon33 ACSimon33 commented Nov 19, 2022

Description
Fixes #756. I've added an option to enable flat namespaces on macOS. If that option is ON we pass the -flat_namespace flag to the linker which fixes the symbol resolution of _xerbla in the testing framework.

Additionally, the issue with cblas_xerbla (see #440) came up again on my local machine after some update. I'm actually not sure what I updated (I'm using GCC 12.2.0 and the newest command-line developer tools). I took a look at #521 which solved this issue before with weak symbols. The __attribute__((weak)) was missing in the function declarations and the CBLAS tests were compiled without the -DHAS_ATTRIBUTE_WEAK_SUPPORT define. After I fixed those two things the tests worked again on my machine.

I also fixed some formatting in cblas_f77.h.

@langou langou merged commit 159cdae into Reference-LAPACK:master Nov 21, 2022
@ACSimon33 ACSimon33 deleted the osx_flat_namespace branch November 21, 2022 14:09
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.

Shared library testing on MacOS
3 participants