Changeset 22847 for main


Ignore:
Timestamp:
2010-09-03T15:47:50+12:00 (14 years ago)
Author:
sjm84
Message:

Fixed a few small mistakes and added ldflags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/build.xml

    r22846 r22847  
    216216    </and>
    217217  </condition>
    218  
     218
    219219  <condition property="static.arg" value="LDFLAGS=-static" else=" ">
    220220    <isset property="compile.static"/>
     
    224224  <if><bool><isset property="use.support.lib"/></bool>
    225225    <if><bool><isset property="env.CFLAGS"/></bool>
    226       <property name="cflags.arg" value="CFLAGS=-I${basedir}/ext/gnome-lib/${os.bin.dir}/include ${env.CFLAGS}"/>
     226      <property name="cflags.arg" value="-I${basedir}/ext/gnome-lib/${os.bin.dir}/include ${env.CFLAGS}"/>
    227227      <else>
    228         <property name="cflags.arg" value="CFLAGS=-I${basedir}/ext/gnome-lib/${os.bin.dir}/include"/>
     228        <property name="cflags.arg" value="-I${basedir}/ext/gnome-lib/${os.bin.dir}/include"/>
    229229      </else>
    230230    </if>
     
    236236  <if><bool><isset property="use.support.lib"/></bool>
    237237    <if><bool><isset property="env.CPPFLAGS"/></bool>
    238       <property name="cppflags.arg" value="CPPFLAGS=-I${basedir}/ext/gnome-lib/${os.bin.dir}/include ${env.CPPFLAGS}"/>
     238      <property name="cppflags.arg" value="-I${basedir}/ext/gnome-lib/${os.bin.dir}/include ${env.CPPFLAGS}"/>
    239239      <else>
    240         <property name="cppflags.arg" value="CPPFLAGS=-I${basedir}/ext/gnome-lib/${os.bin.dir}/include"/>
     240        <property name="cppflags.arg" value="-I${basedir}/ext/gnome-lib/${os.bin.dir}/include"/>
    241241      </else>
    242242    </if>
     
    248248  <if><bool><isset property="use.support.lib"/></bool>
    249249    <if><bool><isset property="env.CXXFLAGS"/></bool>
    250       <property name="cxxflags.arg" value="CXXFLAGS=-I${basedir}/ext/gnome-lib/${os.bin.dir}/include ${env.CXXFLAGS}"/>
     250      <property name="cxxflags.arg" value="-I${basedir}/ext/gnome-lib/${os.bin.dir}/include ${env.CXXFLAGS}"/>
    251251      <else>
    252         <property name="cxxflags.arg" value="CXXFLAGS=-I${basedir}/ext/gnome-lib/${os.bin.dir}/include"/>
     252        <property name="cxxflags.arg" value="-I${basedir}/ext/gnome-lib/${os.bin.dir}/include"/>
    253253      </else>
    254254    </if>
    255255    <else>
    256256      <property name="cxxflags.arg" value=" "/>
     257    </else>
     258  </if>
     259
     260  <if><bool><isset property="use.support.lib"/></bool>
     261    <if><bool><isset property="env.LDFLAGS"/></bool>
     262      <property name="ldflags.arg" value="-L${basedir}/ext/gnome-lib/${os.bin.dir}/lib ${env.LDFLAGS}"/>
     263      <else>
     264        <property name="ldflags.arg" value="-L${basedir}/ext/gnome-lib/${os.bin.dir}/lib"/>
     265      </else>
     266    </if>
     267    <else>
     268      <property name="ldflags.arg" value=" "/>
    257269    </else>
    258270  </if>
     
    13451357        <arg value="--bindir=${basedir}/bin"/>
    13461358        <arg value="${static.arg}"/>
    1347         <env key="CFLAGS" value="${cflags.arg}"/>       
    1348         <env key="CPPFLAGS" value="${cppflags.arg}"/>
    1349         <env key="CXXFLAGS" value="${cxxflags.arg}"/>
    13501359      </exec>
    13511360      <exec executable="make" dir="${src.packages.home}/search4j" failonerror="true"/>
     
    14401449      <arg value="--bindir=${gs2build.home}/bin/${os.bin.dir}"/> <!-- what value to use?? -->
    14411450      <arg line="${gs2.opt.args}"/>
    1442       <arg line="${static.arg}"/>
     1451      <arg line="${static.arg} ${ldflags.arg}"/>
    14431452      <env key="CFLAGS" value="${cflags.arg}"/>       
    14441453      <env key="CPPFLAGS" value="${cppflags.arg}"/>
     
    14801489      <env key="CPPFLAGS" value="${cppflags.arg}"/>
    14811490      <env key="CXXFLAGS" value="${cxxflags.arg}"/>
     1491      <env key="LDFLAGS" value="${ldflags.arg}"/>
    14821492    </exec>
    14831493    <!-- windows: -->
     
    17611771      <arg value="--prefix=${gs2build.home}"/>
    17621772      <arg line="${gs2.opt.args}"/>
    1763       <arg line="${static.arg}"/>
     1773      <arg line="${static.arg} ${ldflags.arg}"/>
     1774      <env key="CFLAGS" value="${cflags.arg}"/>       
     1775      <env key="CPPFLAGS" value="${cppflags.arg}"/>
     1776      <env key="CXXFLAGS" value="${cxxflags.arg}"/>
    17641777    </exec>
    17651778  </target>
     
    17721785      <env key="CPPFLAGS" value="${cppflags.arg}"/>
    17731786      <env key="CXXFLAGS" value="${cxxflags.arg}"/>
     1787      <env key="LDFLAGS" value="${ldflags.arg}"/>
    17741788    </exec>
    17751789   
Note: See TracChangeset for help on using the changeset viewer.