-
Notifications
You must be signed in to change notification settings - Fork 44
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
Please support LDFLAGS #958
Comments
Hi Simon, Did you try to add |
Laurent, On Apple silicon, that’d be But in any case, |
And, for security reasons, |
I'm not sure to understand your need then. I tried to build the example of https://docs.adacore.com/live/wave/libadalang/html/libadalang_ug/ada_api_tutorial.html using Alire on macOS 11.7.4. I finally succesfully build it with: # 1/ install libadalang with alire and set env using alire printenv
# 2/ create the main.adb and lal_test.gpr files from the toturial above (section 4.2.1)
# 3/ set some variable for gcc to find the gmp lib and include files
$ export C_LIBRARY_PATH=/usr/local/include
$ export LIBRARY_PATH=/usr/local/lib
# 4/ build the test project
$ gprbuild lal_test.gpr -XLIBRARY_TYPE=relocatable
$ obj/main main.adb
== main.adb ==
Line 35: Context : constant LAL.Analysis_Context := LAL.Create_Context;
Line 40: Filename : constant String := Ada.Command_Line.Argument (I);
Line 41: Unit : constant LAL.Analysis_Unit :=\x0a Context.Get_From_File (Filename); Is that what you are trying to do? Also, note that we do not support macOS, so there is no warrantly that it will continue to work in the future. |
@thvnx mentioned So as far as I’m concerned we can close this as 'not needed'. |
Ok, thank you for letting us know. :-) |
This is mainly triggered by use on macOS via Alire.
On macOS, we have to use relocatable builds because static SALs don’t work (gprbuild issue 97), and this means that we need to provide
libgmp.dylib
.The macOS compilers available via Alire don’t search
/usr/local
by default, which means that we have to tell gprbuild where to look, and the only obvious mechanism is viaLDFLAGS
.Please see also Langkit issue 647.
The text was updated successfully, but these errors were encountered: