Skip to content

Commit

Permalink
java: Strip the .so
Browse files Browse the repository at this point in the history
  • Loading branch information
terryburton committed Apr 25, 2024
1 parent 105870e commit 24829c2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/java/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ the environment variables:
<mkdir dir="${classes}"/>
</target>

<target name="jni">
<target name="cc">
<exec executable="gcc" failonerror="true">
<arg line="-fPIC -O2 -g -Werror" />
<arg line="-I${clib}" />
Expand All @@ -85,6 +85,14 @@ the environment variables:
</exec>
</target>

<target name="strip" depends="cc">
<exec executable="strip" failonerror="true" unless:set="no_strip">
<arg line="${sofile}" />
</exec>
</target>

<target name="jni" depends="strip" />

<target name="compile" depends="init" description="compile the source">
<javac srcdir="${src}" destdir="${classes}" includeantruntime="false">
<compilerarg value="-Werror"/>
Expand Down

0 comments on commit 24829c2

Please sign in to comment.