public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* alpha-linux-gnulibc1 patch
@ 1997-08-19 19:08 Richard Henderson
  1997-08-19 19:12 ` Minor SS issue Jeffrey A Law
  0 siblings, 1 reply; 2+ messages in thread
From: Richard Henderson @ 1997-08-19 19:08 UTC (permalink / raw)
  To: egcs

Linux/Alpha also has need for a "glibc1" option.  The difference
being that it actually was glibc 1.9x, rather than something HJ
and co. cooked up.  ;-)


r~



Tue Aug 19 11:45:30 1997  Richard Henderson  <rth@cygnus.com>

	* config/alpha/elf.h (LINK_SPEC): ld.so changed between glibc 1.99
	and 2.0.0, so recognize USE_GNULIBC_1.
	* config.guess: Recognize alpha-linux-gnulibc1.
	* configure.in (alpha-*-linux-gnulibc1): New target.
	(alpha-*-linux-gnu*): Don't build crtbegin/end; crtstuff cannot
	handle some of the Alpha-specific details.  Correct versions are
	distributed with glibc.


diff -rpc2 -x CVS egcs/config/alpha/elf.h egcs-work/config/alpha/elf.h
*** egcs/config/alpha/elf.h	Mon Aug 18 08:49:48 1997
--- egcs-work/config/alpha/elf.h	Mon Aug 18 11:46:07 1997
*************** Currently only Linux uses this. */
*** 40,43 ****
--- 40,52 ----
  
  #undef LINK_SPEC
+ #ifdef USE_GNULIBC_1
+ #define LINK_SPEC "-m elf64alpha -G 8 %{O*:-O3} %{!O*:-O1}	\
+   %{shared:-shared}						\
+   %{!shared:							\
+     %{!static:							\
+       %{rdynamic:-export-dynamic}				\
+       %{!dynamic-linker:-dynamic-linker /lib/ld.so.1}}		\
+     %{static:-static}}"
+ #else
  #define LINK_SPEC "-m elf64alpha -G 8 %{O*:-O3} %{!O*:-O1}	\
    %{shared:-shared}						\
*************** Currently only Linux uses this. */
*** 47,50 ****
--- 56,60 ----
        %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2}}	\
      %{static:-static}}"
+ #endif
  
  /* Output at beginning of assembler file.  */
diff -rpc2 -x CVS egcs/config.guess egcs-work/config.guess
*** egcs/config.guess	Mon Aug 18 08:48:59 1997
--- egcs-work/config.guess	Mon Aug 18 13:28:46 1997
*************** EOF
*** 507,510 ****
--- 507,511 ----
  		.end main
  EOF
+ 		LIBC=""
  		${CC-cc} dummy.s -o dummy 2>/dev/null
  		if test "$?" = 0 ; then
*************** EOF
*** 517,524 ****
  					UNAME_MACHINE="alphaev56"
  				;;	
! 		esac	
! 	  fi	
! 	  rm -f dummy.s dummy
! 	  echo ${UNAME_MACHINE}-unknown-linux-gnu ; exit 0
  	elif test "${UNAME_MACHINE}" = "mips" ; then
  	  cat >dummy.c <<EOF
--- 518,531 ----
  					UNAME_MACHINE="alphaev56"
  				;;	
! 			esac	
! 
! 			objdump --private-headers dummy | \
! 			  grep ld.so.1 > /dev/null
! 			if test "$?" = 0 ; then
! 				LIBC="libc1"
! 			fi
! 		fi	
! 		rm -f dummy.s dummy
! 		echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
  	elif test "${UNAME_MACHINE}" = "mips" ; then
  	  cat >dummy.c <<EOF
diff -rpc2 -x CVS egcs/configure.in egcs-work/configure.in
*** egcs/configure.in	Mon Aug 18 08:48:59 1997
--- egcs-work/configure.in	Mon Aug 18 11:49:16 1997
*************** for machine in $build $host $target; do
*** 273,285 ****
  		gas=yes gnu_ld=yes
  		;;
  	alpha*-*-linux-gnu*)
  		tm_file="${tm_file} alpha/linux.h alpha/elf.h"
  		xm_file="${xm_file} alpha/xm-linux.h"
  		target_cpu_default="MASK_GAS"
- 		gas=no
  		tmake_file="t-linux alpha/t-linux"
  		xmake_file=none
  		fixincludes=Makefile.in
- 		extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
  		gas=yes gnu_ld=yes
   		if [[ x$enable_threads = xyes ]]; then
--- 273,295 ----
  		gas=yes gnu_ld=yes
  		;;
+ 	alpha*-*-linux-gnulibc1*)
+ 		tm_file="${tm_file} alpha/linux.h alpha/elf.h"
+ 		xm_file="${xm_file} alpha/xm-linux.h"
+ 		target_cpu_default="MASK_GAS"
+ 		tmake_file="t-linux t-linux-gnulibc1 alpha/t-linux"
+ 		xmake_file=none
+ 		fixincludes=Makefile.in
+ 		gas=yes gnu_ld=yes
+  		if [[ x$enable_threads = xyes ]]; then
+  			thread_file='posix'
+  		fi
+ 		;;
  	alpha*-*-linux-gnu*)
  		tm_file="${tm_file} alpha/linux.h alpha/elf.h"
  		xm_file="${xm_file} alpha/xm-linux.h"
  		target_cpu_default="MASK_GAS"
  		tmake_file="t-linux alpha/t-linux"
  		xmake_file=none
  		fixincludes=Makefile.in
  		gas=yes gnu_ld=yes
   		if [[ x$enable_threads = xyes ]]; then

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Minor SS issue...
  1997-08-19 19:08 alpha-linux-gnulibc1 patch Richard Henderson
@ 1997-08-19 19:12 ` Jeffrey A Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeffrey A Law @ 1997-08-19 19:12 UTC (permalink / raw)
  To: egcs

  In message <199708191554.KAA02170@monolith.solon.com>you write:
  > Is there a point in egcs-ss-970814 extracting into
  > 	egcs-ss-970814/egcs-ss-970814
  > ?
  > 
  > I feel compelled to say "I heard you the first time".  :)
Huh?

% gzcat *.gz | tar vtf -
drwxrws--- law/cygnus        0 Aug 15 15:42 1997 ./egcs-ss-970814/
-rw-rw---- law/cygnus   176520 Aug 15 11:55 1997 ./egcs-ss-970814/ChangeLog.10

Did you make a directory called egcs-ss-970814, then cd into it,
then extract the snapshot?

Jeff

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1997-08-19 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-08-19 19:08 alpha-linux-gnulibc1 patch Richard Henderson
1997-08-19 19:12 ` Minor SS issue Jeffrey A Law

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).