aboutsummaryrefslogtreecommitdiff
path: root/gdb/config
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1991-12-20 19:48:13 +0000
committerFred Fish <fnf@specifix.com>1991-12-20 19:48:13 +0000
commitca9b13c75cb5a14133c9f222670926c84d46ac8b (patch)
treed9a7a6b87314885a8a36cbe629a4c80e79104e5f /gdb/config
parentee1ad69ccdd586171462c68235793bdf71f0b33d (diff)
downloadgdb-ca9b13c75cb5a14133c9f222670926c84d46ac8b.zip
gdb-ca9b13c75cb5a14133c9f222670926c84d46ac8b.tar.gz
gdb-ca9b13c75cb5a14133c9f222670926c84d46ac8b.tar.bz2
Set XM_CLIBS to "-lc /usr/ucblib/libucb.a" so native compilers can find
alloca, but only if it is not found in the std C library. Also forces libc to be search before libucb.a, which contains much broken stuff we *don't* want.
Diffstat (limited to 'gdb/config')
-rw-r--r--gdb/config/i386v4.mh8
1 files changed, 7 insertions, 1 deletions
diff --git a/gdb/config/i386v4.mh b/gdb/config/i386v4.mh
index 6d7592d..4259512 100644
--- a/gdb/config/i386v4.mh
+++ b/gdb/config/i386v4.mh
@@ -1,7 +1,13 @@
# Host: Intel 386 running SVR4.
XDEPFILES= procfs.o i386-xdep.o
XM_FILE= xm-i386v4.h
-XM_CLIBS=
SYSV_DEFINE=-DSYSV
REGEX=regex.o
REGEX1=regex.o
+
+# We need to find alloca() somewhere. Gcc has one built in, but most other
+# compilers don't. We can find one in /usr/ucblib/libucb.a, but we don't
+# want to link against the ucb libraries until after we have linked against
+# the standard libc, or we will pick up broken versions of lots of other things
+# that should come from libc. So we explicitly specify a link with libc first.
+XM_CLIBS=-lc /usr/ucblib/libucb.a