On Fri, Apr 3, 2015 at 10:51 AM, Stanislav Baiduzhyi <baiduzhyi.devel@gmail.com> wrote:
While trying to build customized openjdk package, I've encountered interesting thing... The command, listed below, works fine on host system but fails on chrooted system (both systems are openSUSE 13.2 with stock gcc). Experimenting with it showed that it starts to work as soon as I move '-lz' from the beginning of the command to the very end.
The failure is exactly like here, with undefined references to zlib: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1413
I've found the fix on openSUSE Java:Factory project, so the question is about difference between host and chroot. What can be the cause of such a different behaviour?
Yes, the default linker behaviour (-Wl, --no-as-needed) you get when running outside the build system is wrong but backward compatible :-) -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org