This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

PATCH: Point UDK to proper libes.


[ Jeff, please consider for branch and trunk. ] 

JP, I believe this patch will fix this problem.  (Affirmation
welcome.) I just plain missed this.

RJL

Thu Jun  3 14:16:26 CDT 1999  Robert Lipe  <robertlipe@usa.net>
	* i386/udk.h (LINK_SPEC): Correct linker search path for 
	system libraries.


Index: udk.h
===================================================================
RCS file: /cvs/egcs/egcs/gcc/config/i386/udk.h,v
retrieving revision 1.3
diff -u -p -r1.3 udk.h
--- udk.h	1999/03/28 10:28:28	1.3
+++ udk.h	1999/06/03 19:14:47
@@ -25,6 +25,6 @@
 	%{G:-G} \
 	%{YP,*} \
 	%{!YP,*:%{p:-Y P,/udk/usr/ccs/lib/libp:/udk/usr/lib/libp:/udk/usr/ccs/lib:/udk/usr/lib} \
-	%{!p:-Y P,/udk/usr/ccs/lib:/usr/lib}} \
+	%{!p:-Y P,/udk/usr/ccs/lib:/udk/usr/lib}} \
 	%{Qy:} %{!Qn:-Qy}"
 









Jean-Pierre Radley wrote:
> Robert Lipe averred (on Thu, Jun 03, 1999 at 12:08:42PM -0500):
> | > /u/udk/bin/gcc -O  xtb+.o xtdbglog.o xtmain.o xtscrpt.o xtsubs.o xttn.o -o xt -l
> | > socket -lcurses
> | > UX:ld: ERROR: /usr/lib/libsocket.so: fatal error: cannot link OpenServer object
> | > 
> | > What we seem to have here is that udk-gcc (still a 2.96 compilation)
> | > is looking in /usr/lib before /udk/usr/lib.
> | 
> | Can you confirm this by inserting a '-v' into that final link line
> | and watching the -L options passed to ld (a.k.a "collect2"?)   Cut and
> | paste is fine.
> 
> # /u/udk/bin/gcc -O -v *.o -o xt -lsocket -lcurses
> Reading specs from /u/udk/lib/gcc-lib/i586-pc-udk/gcc-2.96/specs
> gcc version gcc-2.96 19990602 (experimental)
>  /u/udk/lib/gcc-lib/i586-pc-udk/gcc-2.96/collect2 -V -Y P,/udk/usr/ccs/lib:/usr/
> lib -Qy -o xt /udk/usr/ccs/lib/crt1.o /udk/usr/ccs/lib/crti.o /udk/usr/ccs/lib/v
> alues-Xa.o /u/udk/lib/gcc-lib/i586-pc-udk/gcc-2.96/crtbegin.o -L/u/udk/lib/gcc-l
> ib/i586-pc-udk/gcc-2.96 -L/udk/usr/ccs/bin -L/udk/usr/ccs/lib -L/u/udk/lib xtb+.
> o xtdbglog.o xtmain.o xtscrpt.o xtsubs.o xttn.o -lsocket -lcurses -lgcc -lc -lcr
> t -lgcc /u/udk/lib/gcc-lib/i586-pc-udk/gcc-2.96/crtend.o /udk/usr/ccs/lib/crtn.o
> 
> UX:ld: INFO:  Optimizing C Compilation System  (CCS) 3.2  03/03/99 (CA-unk_voyag
> er5)
> UX:ld: ERROR: /usr/lib/libsocket.so: fatal error: cannot link OpenServer object
> into Intel iABI target
> collect2: ld returned 1 exit status
> 
> Hmm.
> That doesn't show /udk/usr/lib at all, where there does exist a libsocket.so.
> 
> | You intentionally installed udk-gcc in a different path instead of using
> | --exec-prefix, right?   I don't much care; I just want to be sure that you
> | didn't get these results by following my instructions. :-)
> 
> I used this script:
> 
> #!/bin/sh
> cd /s/tools/egcsudk
> CC=/udk/usr/ccs/bin/cc CFLAGS=-O CXXFLAGS=-O /s/tools/egcs/configure --host=i586-pc-udk --target=i586-pc-udk --exec-prefix=/u/udk 
> make bootstrap
> 
> -- 
> Jean-Pierre Radley <jpr@jpr.com>  XC/XT Custodian   Sysop, CompuServe SCOForum


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]