* solib.c (locate_base): Fix uninitialized variable that was

causing return of random value to callee.

	* config/mh-amix, config/mh-i386v4:  Change to find alloca by
	compiling and linking alloca.c, even when it is not strictly
	required.  Also arrange to link with -ltermlib rather than
	-ltermcap.

	* Makefile.in:  Move TERMCAP definition to prior to inclusion
	of host makefile fragments so it can be overridden.
This commit is contained in:
Fred Fish
1991-12-23 03:43:48 +00:00
parent a9b0d1aece
commit 431df2ebac
3 changed files with 19 additions and 6 deletions

View File

@ -31,7 +31,7 @@ man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
infodir = $(prefix)/info
infodir = $(datadir)/info
includedir = $(prefix)/include
docdir = $(datadir)/doc
@ -45,6 +45,10 @@ AR = ar
AR_FLAGS = qv
RANLIB = ranlib
# Flags that describe where you can find the termcap library.
# This can be overridden in the host Makefile fragment file.
TERMCAP = -ltermcap
#### Host, target, and site specific Makefile fragments come in here.
###
@ -140,10 +144,6 @@ LDFLAGS = $(CFLAGS)
LIBIBERTY_DIR = ${srcdir}/../libiberty
LIBIBERTY = $(unsubdir)/../libiberty${subdir}/libiberty.a
# Flags that describe where you can find the termcap library.
# You may need to make other arrangements for USG.
TERMCAP = -ltermcap
# The config/mh-* file must define REGEX and REGEX1 on USG machines.
# If your sysyem is missing alloca(), or, more likely, it's there but
# it doesn't work, define ALLOCA & ALLOCA1 too.