# Format for this file: # Epoch Channel Nickname Action Message # # All separated with a single space, empty values are replaced with a dash '-' # except messages which are kept empty. # Lines starting with '#' are comments; comments are not allowed except as the only content of the line # 1449364867 - bhundven quit Quit: Leaving 1449390782 #crosstool-ng diorcety join 1449391175 #crosstool-ng y_morin join 1449408726 - diorcety quit Quit: Leaving. 1449409292 #crosstool-ng daleg_ join 1449409456 - daleg quit Ping timeout: 250 seconds 1449413065 #crosstool-ng diorcety join 1449428136 #crosstool-ng bhundven join 1449430938 - blueness__ quit Changing host 1449430938 #crosstool-ng blueness__ join 1449435303 - diorcety quit Quit: Leaving. 1449436460 #crosstool-ng diorcety join 1449438703 #crosstool-ng bhundven say y_morin: do you know if it is necessary for libexpat to be compiled static? 1449438731 #crosstool-ng bhundven say https://github.com/crosstool-ng/crosstool-ng/blob/master/scripts/build/companion_libs/210-expat.sh#L77 1449438767 #crosstool-ng bhundven say I know this probably breaks on mac os x, but it also doesn't work on archlinux, as I can't static link. 1449438768 #crosstool-ng y_morin say bhundven: Hey! :-) Strictly speaking, no. 1449438790 #crosstool-ng y_morin say bhundven: Fact is, all the 'companion libraries' are built statically on-purpose. 1449438805 #crosstool-ng y_morin say bhundven: Th e reason for libexpat os because gdb needs it 1449438823 #crosstool-ng bhundven say right 1449438823 #crosstool-ng y_morin say I meant: the gdb-on-the-target needs it. 1449438837 #crosstool-ng bhundven say well, this is building expat for the build system/host system 1449438842 #crosstool-ng bhundven say sorry, just the host system 1449438871 #crosstool-ng y_morin say But because a user may have his own expat library in his buildsystem (like Buildroot, for example) we definitely do *not* want to have the target libexpat in the sysroot. 1449438895 #crosstool-ng y_morin say bhundven: Nope, we're also building it for target: https://github.com/crosstool-ng/crosstool-ng/blob/master/scripts/build/companion_libs/210-expat.sh#L39 1449438908 #crosstool-ng bhundven say right. 1449438935 #crosstool-ng y_morin say bhundven: So, for the target we should really (like, really-really) not build it shared and put it in the sysroot. 1449438941 #crosstool-ng bhundven say I'm just saying that my host system (technically in this context, my build system) cannot build static libraries/binaries. 1449438956 #crosstool-ng y_morin say bhundven: For the host variant, that can be relaxed. 1449438961 #crosstool-ng bhundven say ok 1449438984 #crosstool-ng y_morin say bhundven: The reason I did static is that it is easier to move the toolchain around and not care about LD_LIBRARY_PATH and the likes. 1449439005 #crosstool-ng y_morin say bhundven: But with appropriate rpath (Boo!) this might no longer be needed. 1449439006 #crosstool-ng bhundven say yea 1449439012 #crosstool-ng y_morin say (But I hate rpath) 1449439026 #crosstool-ng y_morin say (and I did not know how to do it properly back then) 1449439072 #crosstool-ng bhundven say doesn't rpath break relocatable toolchain? 1449439082 #crosstool-ng bhundven say or is it relative? 1449439099 #crosstool-ng y_morin say bhundven: Well, both. 1449439112 #crosstool-ng y_morin say bhundven: It is possible to have a relative rpath, but it's complicated. 1449439188 #crosstool-ng bhundven say y_morin: but if I allow building expat for the host as shared - without rpath - it would break relocatable toolchain? 1449439193 #crosstool-ng y_morin say bhundven: If a rpath starts with the '$ORIGIN' (or '${ORIGIN}') (without the quotes. obviously), then it is treated as a path relative to the binary. 1449439200 #crosstool-ng y_morin say bhundven: Indeed. 1449439210 #crosstool-ng bhundven say >.< 1449439233 #crosstool-ng y_morin say bhundven: Yeah, that's sad. archlinux are stupid for disallowing static linking, and MacOS for not suporting it at all.. 1449439437 #crosstool-ng bhundven say I'm not sure how to move forward on this. 1449439480 #crosstool-ng y_morin say bhundven: Neither am I... 1449439492 #crosstool-ng y_morin say bhundven: To be noted: we tried in Buildroot to use the $ORIGIN trick. 1449439527 #crosstool-ng y_morin say bhundven: But it turns out to be very, veryu difficult to use, as the '$' can be interpreted at various depth in the make/shell/make/shell/... intricacies... 1449439540 #crosstool-ng bhundven say hrm 1449439547 #crosstool-ng y_morin say bhundven: A solution would be to build everything with a rather long rpath, and then patchelf it with $ORIGIN. 1449439703 #crosstool-ng bhundven say damn, and I just got my arch install to a place I was happy with. 1449440497 #crosstool-ng bhundven say at least static linking can be fixed on mac os x (crosstool-ng doesn't "support" or "condone" it) 1449440548 #crosstool-ng bhundven say https://opensource.apple.com/tarballs/Csu/ 1449440575 #crosstool-ng bhundven say granted, the right one has to be built for the Mac OS X/Xcode combination... 1449440834 - bhundven quit Quit: switching back to debian... again... 1449442163 - diorcety quit Remote host closed the connection 1449443996 - y_morin quit Quit: Nighty Night! :-)