Comments (8)
Do you mean a dummy replacement for x86_64-apple-darwin13-pkg-config
(i.e., the symlink that's installed if you build pkg-config without the --disable-host-tool
flag; or a replacement for pkg-config itself?
from osxcross.
well, I suppose that setting PKG_CONFIG_LIBDIR
is enough to make any pkg-config unaware of host libraries and make it work with the osxcross sysroot, or not?
from osxcross.
I just checked with all the other pkg-configs I have (host, mingw32/64), and they all have a single hardcoded path, and I can change that only with PKG_CONFIG_LIBDIR
. So that's the only "identity" of a pkg-config, and that is what osxcross should set imo.
from osxcross.
You can use PKG_CONFIG_PATH
, which will accept a colon-delimited arbitrary list.
from osxcross.
No, because there might be other user scripts that set PKG_CONFIG_PATH
. That is what the flag is for. The toolchain base path should go in PKG_CONFIG_LIBDIR, and that too takes a colon delimited list (and it does in my three different toolchains, with "$SYSROOT/lib/pkgconfig:$SYSROOT/share/pkgconfig"
).
from osxcross.
Interesting! I'll have to play around with that some more — the docs aren't super clear on that at all, but it seems you're quite right.
I see now there is also PKG_CONFIG_SYSROOT_DIR
, but it doesn't seem to work all that well in combination with PKG_CONFIG_PATH
/PKG_CONFIG_LIBDIR
...
Also (not sure what your use case is) keep in mind that pkg-config isn't used near much on Darwin (not nearly as much as it should be, IMO), due two-level namespace in dynamic linkage. But since you mentioned macports, you might also want to check out how brew
handles pkg-config paths/files (and dependencies in general).
from osxcross.
I think that PKG_CONFIG_SYSROOT_DIR
is not the right way, because it will nevertheless look int the host pkgconfig directories and then mangle the paths. I don't think this is really what to be expected (as the message in the mailing list of your link points out).
My use case is having a unified build system for a project of mine that works on native osx, mingw and linux and cross compilation environments where possible, and I'm doing that in a linux-ish way (all libs have a configure script which possibly queries pkg-config).
I just skimmed over it (I'm familiar with ruby, brew and OSX in general), but brew seems to set PKG_CONFIG_LIBDIR
too.
from osxcross.
Done with a8fdaa3, but a little bit different:
*-apple-darwinXX-pkg-config
always returns 1
as exit code unless OSXCROSS_PKG_*
is set (which is remapped to PKG_*
).
from osxcross.
Related Issues (20)
- "mv: cannot stat" error on extracting macOS SDK HOT 1
- Using gcc assembler HOT 2
- GCC Built by ./build_gcc.sh o32-gcc and o32-g++ only target x86_64 HOT 1
- Can't pass -Wl,--allow-multiple-definition HOT 3
- osxcross-macports infinite loops when installing install curl-ca-bundle HOT 5
- build_gcc.sh does not install needed prerequisites. HOT 2
- flang support HOT 1
- Add FAQ HOT 3
- error in osxcross build HOT 5
- RFE: macports variants
- stdlib.h missing from xar/lib/linuxattr.c HOT 2
- install_name_tool doesn't adjust ad-hoc code signatures HOT 1
- Error while packaging HOT 3
- Fialed to cross compile apple darwin target HOT 5
- This header is only meant to be used on x86 and x64 architecture HOT 2
- target-cpu
- ld64.lld: error: undefined symbol: __cpu_model
- Support for xcrun --show-sdk-platform-version HOT 4
- GCC compilation is not working
- support for asahi linux, getting the following error error while loading shared libraries: libicui18n.so.74 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osxcross.