logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

New aot-compile syntax?: msg#00056

Subject: New aot-compile syntax?
While I've been nativifying various bits of the Tomcat stack I've kept
finding myself with bits of specfile like:

  for jar in %{name} %{name}-launcher; do
      aot-compile build/lib/$jar.jar build/lib/lib$jar.jar.so
  done

The attached patch changes aot-compile's syntax to allow that bit f
spec to be rewritten as:

 aot-compile build/lib/%{name}.jar build/lib/%{name}-launcher.jar

With the attached patch you can pass build options to gcc by putting
them before the jars on the command line:

 aot-compile -march=i386 -mtune=pentium4 build/lib/%{name}.jar

or (more likely):
 
 aot-compile $RPM_OPTS build/lib/%{name}.jar

Anyone see any problems?

Cheers,
Gary

[ gbenson-H+wXaHxf7aLQT0dZR+AlfA@xxxxxxxxxxxxxxxx ][ I am Red Hat ][ 
http://inauspicious.org/ ]

Attachment: aot-compile.in.patch
Description: Text document


<Prev in Thread] Current Thread [Next in Thread>