Subject: Re: X problems
To: None <current-users@sun-lamp.cs.berkeley.edu>
From: Marc Wandschneider <marcwan@microsoft.com>
List: current-users
Date: 11/23/1993 06:45:23
----------
| From: Havard Eidnes  <netmail!Havard.Eidnes@runit.sintef.no>
|
| The original author has probably better things to do :-), so I take the
| liberty of doing it for him/them.  (I don't think that a better or more
| complete description has been posted here.)

| To ammend the original suggestion:
|
| cd /usr/src/share/mk; make install
| cd /usr/src/include; make && make install
|    setenv LDSTATIC -static
|    setenv NOPIC
| cd /usr/src/lib/libc; make && make install
| cd /usr/src/gnu/lib/libmalloc; make && make install
|    cd /usr/src/gnu/usr.bin/gas; make && make install
|    cd /usr/src/gnu/usr.bin/ld; make && make install
| # You'll probably get some barfage from the above because ld.so won't
| # build yet.  Ignore it and install ld anyway.
|    cd /usr/src/gnu/usr.bin/gcc; make && make install
|    unsetenv NOPIC LDSTATIC
|    cd /usr/src/lib ; make && make install
|    cd /usr/src/gnu/lib ; make && make install
| cd /usr/src/gnu/usr.bin/ld; make && make install
|    cd /usr/src; make && make install
|
| You'll probably need the latest sources for this to work.


	Now I remember what problem I had with this:

	Somewhere along the line I had to go and rebuild crt0.o when
	I got an ld error: unresolved external __DYNAMIC in crt0.o.

	However, I had to edit the Makefile and actually remove the
	-DDYNAMIC flag in order to do this.

	Thus, if you get said unresolved external, re-install
	crt0.o without this flag, and then put the flag back in,
	and proceed.  Things should work thereafter.


						Marc 'em.

------------------------------------------------------------------------------