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@redhat.com ][ I am Red Hat ][ http://inauspicious.org/ ]
* Gary Benson gbenson@redhat.com [2005-04-22 11:59]:
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
Looks good to me.
Thanks,
Andrew
java-devel@lists.fedoraproject.org