[oe] openjdk-7 and gcc v5
Bruce, Henry
henry.bruce at intel.com
Thu Oct 29 23:00:35 UTC 2015
Many thanks to contributors who fixed openjdk build issues introduced by gcc v5 and for maintainers for pushing the updates.
However one problem remains: openjdk build fails in openjdk/jdk/make/java/nio due to -static compiler flag being used in conjunction with -pthread giving error
/usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc
I fixed this by removing -static flag from Makefile. Not sure of this was the right thing to do (so I didn't submit patch) but it worked for me.
I added the following to the an openjdk bbappend and it fixed the build and resulting jre is running OK.
do_configure_append() {
gcc -v 2>&1 | grep 5\..
if [ "$?" == "0" ]; then
sed -i s/-static// ${B}/openjdk/jdk/make/java/nio/Makefile
fi
}
Regards,
Henry Bruce
More information about the Openembedded-devel
mailing list