$OpenBSD: patch-plugins_org_eclipse_update_core_openbsd_src_build_xml,v 1.4 2006/12/13 20:57:16 kurt Exp $
--- plugins/org.eclipse.update.core.openbsd/src/build.xml.orig	Sun Jul 31 21:51:03 2005
+++ plugins/org.eclipse.update.core.openbsd/src/build.xml	Sun Jul 31 22:18:08 2005
@@ -6,12 +6,12 @@
   <property name="eclipse-home" value="${basedir}/../.."/>
   <property name="jdk-path" value="${java.home}"/>  
   <property name="destination" value="${eclipse-home}/org.eclipse.update.core.openbsd/os/openbsd/x86/"/>
-  <property name="obj-path" value="${eclipse-home}/org.eclipse.update.core.openbsd/src/"/>
+  <property name="obj-path" value="${eclipse-home}/org.eclipse.update.core/src/"/>
   <property name="src-path" value="${eclipse-home}/org.eclipse.update.core.openbsd/src/"/>  
   
   <!-- sets the properties -->
   <property name="library-name" value="libupdate"/>  
-  <property name="library-platform" value="so"/>    
+  <property name="library-platform" value="so.4.0"/>    
   <property name="library-file" value="${library-name}.${library-platform}"/>
   
   <!-- This target holds all initialization code that needs to be done for -->
@@ -44,15 +44,16 @@
   <target name="build">
     <echo message="Building ${library-file}"/>
 
-    <property name="header-path" value="${jdk-path}/../include"/>
+    <property name="header-path" value="${jdk-path}/include"/>
     <property name="header-openbsd-path" value="${header-path}/openbsd" />
 
-	<echo message="gcc -o  ${library-file} -shared -I${src-path} -I${header-openbsd-path} ${library-file} -static -lc"/>
+	<echo message="${CC} -o  ${library-file} -shared -fPIC -I${src-path} -I${header-path} -I${header-openbsd-path} ${library-file} -static -lc"/>
 
-    <apply executable="gcc" dest="${eclipse-home}/" parallel="false">
+    <apply executable="${CC}" dest="${eclipse-home}/" parallel="false">
       <arg value="-o"/>
       <arg value="${library-file}"/>
       <arg value="-shared"/>
+      <arg value="-fPIC"/>
       <arg value="-I${src-path}"/>
       <arg value="-I${header-path}"/>      
       <arg value="-I${header-openbsd-path}"/>  
