public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [build, libjava] Avoid jar -@ usage message
@ 2011-04-04 16:03 Rainer Orth
  0 siblings, 0 replies; only message in thread
From: Rainer Orth @ 2011-04-04 16:03 UTC (permalink / raw)
  To: gcc-patches; +Cc: java-patches

While configuring libjava on Solaris, I regularly get a jar usage
message since /usr/bin/jar doesn't support -@:

Illegal option: @
Usage: jar {ctxui}[vfm0Me] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
[...]

The following patch fixes this, bootstrapped on i386-pc-solaris2.11,
installed as obvious.

	Rainer


2011-04-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

	* configure.ac: Redirect $JAR -cf@ output to /dev/null.
	* configure: Regenerate.

diff --git a/libjava/configure.ac b/libjava/configure.ac
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -166,7 +166,7 @@ AC_PATH_PROG([UNZIP], [unzip], unzip)
 # We need a jar that supports -@.  This is a GNU extension.
 if test "$JAR" != no; then
    rm -f config-test.jar
-   echo $srcdir/configure.ac | $JAR -cf@ config-test.jar
+   echo $srcdir/configure.ac | $JAR -cf@ config-test.jar >/dev/null 2>&1
    if test -f config-test.jar; then
      rm -f config-test.jar
    else

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-04-04 16:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-04 16:03 [build, libjava] Avoid jar -@ usage message Rainer Orth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).