mesonbuild / meson

The Meson Build System
http://mesonbuild.com
Apache License 2.0
5.35k stars 1.53k forks source link

Error Finding Xcode-installed Libraries using the 'dependency' Command #13209

Open srbarton43 opened 1 month ago

srbarton43 commented 1 month ago

Describe the bug Meson dependency command does not find xcode-installed or user installed c libraries on mac os. In this example, it does not find the libedit library which is installed by Xcode. I believe the issue is that the path being searched is the Frameworks directory rather than the usr, i.e. /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr. libedit.tbd is located in usr/lib in that directory.

To Reproduce meson.build.txt

Expected behavior I expect the dependency to be found given that it is able to correctly check that -ledit link_argument.

system parameters