jdk/src/share/demo/jvmti/index.html
Print this page
*** 306,324 ****
For X86:
<br>
<code><ul>
gcc -O2 -fPIC -pthread -DLINUX -c <i>*.c</i>
<br>
! gcc -z defs -static-libgcc -shared -mimpure-text -o <i>libXXX.so *.o</i> -lc
</code></ul>
<br>
For AMD64:
<br>
<code><ul>
gcc -O2 -fPIC -pthread -DLINUX -D_LP64=1 -c <i>*.c</i>
<br>
! gcc -z defs -static-libgcc -shared -mimpure-text -o <i>libXXX.so *.o</i> -lc
</code></ul>
<br>
</li>
<li>
--- 306,324 ----
For X86:
<br>
<code><ul>
gcc -O2 -fPIC -pthread -DLINUX -c <i>*.c</i>
<br>
! gcc -z defs -static-libgcc -shared -o <i>libXXX.so *.o</i> -lc
</code></ul>
<br>
For AMD64:
<br>
<code><ul>
gcc -O2 -fPIC -pthread -DLINUX -D_LP64=1 -c <i>*.c</i>
<br>
! gcc -z defs -static-libgcc -shared -o <i>libXXX.so *.o</i> -lc
</code></ul>
<br>
</li>
<li>
*** 337,347 ****
<code>-xregs=no%frameptr</code>
option.
</li>
<li>
! Library: Use -static-libgcc -mimpure-text.
<br>
When building the shared library (-shared option), this option
allows for maximum portability of the library between different
flavors of Linux.
The problem we have seen with Linux is that we cannot depend
--- 337,347 ----
<code>-xregs=no%frameptr</code>
option.
</li>
<li>
! Library: Use -static-libgcc.
<br>
When building the shared library (-shared option), this option
allows for maximum portability of the library between different
flavors of Linux.
The problem we have seen with Linux is that we cannot depend