Lines 5-11
Link Here
|
5 |
<!-- Set a meaningful default value for when it is not. --> |
5 |
<!-- Set a meaningful default value for when it is not. --> |
6 |
<property name="eclipse-home" value="${basedir}/../.."/> |
6 |
<property name="eclipse-home" value="${basedir}/../.."/> |
7 |
<property name="jdk-path" value="${java.home}"/> |
7 |
<property name="jdk-path" value="${java.home}"/> |
8 |
<property name="destination" value="${eclipse-home}/org.eclipse.update.core.linux/os/linux/x86/"/> |
8 |
<property name="destination" value="${eclipse-home}/org.eclipse.update.core.linux/os/linux/${arch}/"/> |
9 |
<property name="obj-path" value="${eclipse-home}/org.eclipse.update.core.linux/src/"/> |
9 |
<property name="obj-path" value="${eclipse-home}/org.eclipse.update.core.linux/src/"/> |
10 |
<property name="src-path" value="${eclipse-home}/org.eclipse.update.core.linux/src/"/> |
10 |
<property name="src-path" value="${eclipse-home}/org.eclipse.update.core.linux/src/"/> |
11 |
|
11 |
|
Lines 47-63
Link Here
|
47 |
<property name="header-path" value="${jdk-path}/../include"/> |
47 |
<property name="header-path" value="${jdk-path}/../include"/> |
48 |
<property name="header-linux-path" value="${header-path}/linux" /> |
48 |
<property name="header-linux-path" value="${header-path}/linux" /> |
49 |
|
49 |
|
50 |
<echo message="gcc -o ${library-file} -shared -I${src-path} -I${header-linux-path} ${library-file} -static -lc"/> |
50 |
<echo message="gcc -o ${library-file} -shared -fPIC -I${src-path} -I${header-linux-path} ${library-file} -lc"/> |
51 |
|
51 |
|
52 |
<apply executable="gcc" dest="${eclipse-home}/" parallel="false"> |
52 |
<apply executable="gcc" dest="${eclipse-home}/" parallel="false"> |
53 |
<arg value="-o"/> |
53 |
<arg value="-o"/> |
54 |
<arg value="${library-file}"/> |
54 |
<arg value="${library-file}"/> |
55 |
<arg value="-shared"/> |
55 |
<arg value="-shared"/> |
|
|
56 |
<arg value="-fPIC"/> |
56 |
<arg value="-I${src-path}"/> |
57 |
<arg value="-I${src-path}"/> |
57 |
<arg value="-I${header-path}"/> |
58 |
<arg value="-I${header-path}"/> |
58 |
<arg value="-I${header-linux-path}"/> |
59 |
<arg value="-I${header-linux-path}"/> |
59 |
<srcfile/> |
60 |
<srcfile/> |
60 |
<arg value="-static"/> |
|
|
61 |
<arg value="-lc"/> |
61 |
<arg value="-lc"/> |
62 |
<fileset dir="${src-path}" includes="*.c"/> |
62 |
<fileset dir="${src-path}" includes="*.c"/> |
63 |
<mapper type="glob" from="*.c" to="*.o"/> |
63 |
<mapper type="glob" from="*.c" to="*.o"/> |
Lines 67-70
Link Here
|
67 |
</target> |
67 |
</target> |
68 |
|
68 |
|
69 |
|
69 |
|
70 |
</project> |
70 |
</project> |