A java program built with 1.5 (or 1.6 with 1.5 comparability mode on) gives this warning:
Java HotSpot(TM) Server VM warning: You have loaded library mynativelib.so which might have disabled stack guard.
The VM will try to fix the stack guard now. It's highly recommended that you fix the library with 'execstack -c ', or link it with '-z noexecstack'.
It doesn't seem to cause a problem but obviously would look a bit scary to our customers. I don't think building the java bits in 7 would fix this issue but I'm struggling to see where the docs say how to build JNI libs for Java 7, which is what the warning implies I should be doing differently.
So where should I be looking?
gcc
org++
or whatever. You could also try the command suggested, as a part of the build. – Raffinate