Could somebody explain to me like I'm 5 the implications of 'hostmakedepends' vs 'makedepends', ideally by giving an example? #57025
-
|
My goal is to optimize/create "better" templates, and I keep "getting stuck" in the process of deciding which dependency goes where (first). I do understand the difference between 'host' and 'target', but looking over templates randomly, I'm getting the sense that I'm not the only one being slightly confused, since both arrays will see to it that required packages will be installed to the master directory, anyway. Thanks for reading and maybe helping me in better understanding Void's build infrastructure. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Its for cross compiling,
|
Beta Was this translation helpful? Give feedback.
Its for cross compiling,
hostmakedependsare installed for the host architecture,makedependsare installed for the target architecture. Usually programs that you execute will be inhostmakedependsand libraries you link against go intomakedepends.hostmakedependsare installed into/, when cross compilingmakedependsis installed into/usr/${XBPS_TARGET_ARCH}(theXBPS_CROSS_BASE. When you are not cross compiling then they are basically the same and installed into/.https://github.com/void-linux/void-packages/blob/master/Manual.md#about-the-many-types-of-depends-variables