Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / backup / areca / fix-javah-bug.diff
blob5d5feaf9b9432ca4cecd3b83f4dbf57e81fa6729
1 diff --git a/build.xml b/build.xml
2 index 1ba08e0..9248b76 100644
3 --- a/build.xml
4 +++ b/build.xml
5 @@ -56,10 +56,16 @@
7 <target name="compilejni" unless="isWindows">
8 <description>JNI compilation task (builds libarecafs.so ... for unix-like operating systems only)</description>
10 <!--Generate the JNI header-->
11 - <javah destdir="${root}/jni" force="yes" classpath="${root}/lib/areca.jar">
12 - <class name="com.myJava.file.metadata.posix.jni.wrapper.FileAccessWrapper"/>
13 - </javah>
14 + <exec executable="javah">
15 + <arg value="-d"/>
16 + <arg value="${root}/jni"/>
17 + <arg value="-force"/>
18 + <arg value="-classpath"/>
19 + <arg value="${root}/lib/areca.jar"/>
20 + <arg value="com.myJava.file.metadata.posix.jni.wrapper.FileAccessWrapper"/>
21 + </exec>
23 <!-- Compile the JNI code -->
24 <exec dir="${root}/jni" executable="gcc">