Fix mainline bootstrap issue for *-*-freebsd4

Loren James Rittle rittle@latour.waar.labs.mot.com
Mon Oct 4 22:28:00 GMT 2004


Bootstrap has been broken on mainline for *-*-freebsd4 since $(LINK)
was changed to $(GCJ) inside libjava's build machinery.  This patch
restores bootstrap by weaken the spec-checked condition.  Now, only a
final link on this platform requires the -pthread switch (this matches
the existing semi-broken usage of -lc vs. -lc_r, which was finally
fixed for *-*-freebsd5).  As bootstrapped, checked and committed.

2004-10-04  Loren J. Rittle  <ljrittle@acm.org>

	* configure.ac (*-*-freebsd[[1234]]*): Refine error message
	emission rule.
	* configure: Rebuilt.

Index: configure.ac
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.ac,v
retrieving revision 1.8
diff -c -r1.8 configure.ac
*** configure.ac	22 Sep 2004 20:59:14 -0000	1.8
--- configure.ac	4 Oct 2004 22:20:41 -0000
***************
*** 652,658 ****
  	# the command line.  For now, the user must provide the -pthread
  	# switch to link code compiled with gcj.  In future, consider adding
  	# support for weak references to pthread_* functions ala gthr.h API.
! 	THREADSPEC='%{!pthread: %eUnder this configuration, the user must provide -pthread when linking.}'
  	;;
       *-*-freebsd*)
  	# FreeBSD 5 implements a model much closer to other modern UNIX
--- 652,658 ----
  	# the command line.  For now, the user must provide the -pthread
  	# switch to link code compiled with gcj.  In future, consider adding
  	# support for weak references to pthread_* functions ala gthr.h API.
! 	THREADSPEC='%{!pthread: %{!shared: %eUnder this configuration, the user must provide -pthread when linking.}}'
  	;;
       *-*-freebsd*)
  	# FreeBSD 5 implements a model much closer to other modern UNIX



More information about the Java-patches mailing list