Mac OS X: Fix native compilation error by forcing all native source to be Objective C. This is needed the jawt headers use Objective C features

This commit is contained in:
Elias Naur 2007-04-08 21:33:35 +00:00
parent 2b8f56021f
commit db7acb07ce
1 changed files with 1 additions and 1 deletions

View File

@ -18,7 +18,7 @@
<target name="compile">
<apply dir="${dstdir}" executable="${compiler}" os="Mac OS X" skipemptyfilesets="true" failonerror="true" dest="${dstdir}">
<arg line="${cflags} -O2 -Wall -c -fPIC -I${sdkroot}/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -I${native}/common -I${native}/macosx"/>
<arg line="${cflags} -ObjC -O2 -Wall -c -fPIC -I${sdkroot}/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -I${native}/common -I${native}/macosx"/>
<!-- Map from *.m and *.c to .o -->
<mapper type="regexp" from="^(.*)\.(c|m)" to="\1.o"/>
<fileset dir="${native}/macosx" includes="*.m"/>