* configure.in: Remove code dealing with shared libraries.
* Makefile.in: Remove HLDFLAGS and HLDENV. * configure: Regenerated.
This commit is contained in:
parent
dc62bfc2fc
commit
72cfdc7602
4 changed files with 507 additions and 630 deletions
|
@ -1,3 +1,9 @@
|
|||
2003-01-04 Mark Kettenis <kettenis@gnu.org>
|
||||
|
||||
* configure.in: Remove code dealing with shared libraries.
|
||||
* Makefile.in: Remove HLDFLAGS and HLDENV.
|
||||
* configure: Regenerated.
|
||||
|
||||
2003-01-04 Andrew Cagney <ac131313@redhat.com>
|
||||
|
||||
* frame.c (deprecated_frame_xmalloc): New function.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
|
||||
# 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
# 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||
|
||||
# This file is part of GDB.
|
||||
|
||||
|
@ -345,8 +345,7 @@ LDFLAGS = @LDFLAGS@
|
|||
# Profiling options need to go here to work.
|
||||
# I think it's perfectly reasonable for a user to set -pg in CFLAGS
|
||||
# and have it work; that's why CFLAGS is here.
|
||||
INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_LDFLAGS) @HLDFLAGS@
|
||||
HLDENV = @HLDENV@
|
||||
INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_LDFLAGS)
|
||||
|
||||
# If your system is missing alloca(), or, more likely, it's there but
|
||||
# it doesn't work, then refer to libiberty.
|
||||
|
@ -987,7 +986,7 @@ init.o: init.c $(defs_h) $(call_cmds_h)
|
|||
# Removing the old gdb first works better if it is running, at least on SunOS.
|
||||
gdb$(EXEEXT): gdb.o main.o libgdb.a $(CONFIG_OBS) $(ADD_DEPS) $(CDEPS) $(TDEPLIBS)
|
||||
rm -f gdb$(EXEEXT)
|
||||
$(HLDENV) $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \
|
||||
$(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \
|
||||
-o gdb$(EXEEXT) gdb.o main.o $(CONFIG_OBS) libgdb.a \
|
||||
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
|
||||
|
||||
|
@ -2388,7 +2387,7 @@ clean-gdbtk:
|
|||
insight$(EXEEXT): gdbtk-main.o main.o libgdb.a $(CONFIG_OBS) $(ADD_DEPS) \
|
||||
$(CDEPS) $(TDEPLIBS)
|
||||
rm -f insight$(EXEEXT)
|
||||
$(HLDENV) $(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \
|
||||
$(CC_LD) $(INTERNAL_LDFLAGS) $(WIN32LDAPP) \
|
||||
-o insight$(EXEEXT) gdbtk-main.o main.o $(CONFIG_OBS) libgdb.a \
|
||||
$(TDEPLIBS) $(TUI_LIBRARY) $(CLIBS) $(LOADLIBES)
|
||||
|
||||
|
|
1061
gdb/configure
vendored
1061
gdb/configure
vendored
File diff suppressed because it is too large
Load diff
|
@ -1143,67 +1143,6 @@ AC_SUBST(CONFIG_CLEAN)
|
|||
AC_SUBST(CONFIG_INSTALL)
|
||||
AC_SUBST(CONFIG_UNINSTALL)
|
||||
|
||||
# Begin stuff to support --enable-shared
|
||||
AC_ARG_ENABLE(shared,
|
||||
[ --enable-shared Use shared libraries],
|
||||
[case "${enableval}" in
|
||||
yes) shared=true ;;
|
||||
no) shared=false ;;
|
||||
*) shared=true ;;
|
||||
esac])dnl
|
||||
|
||||
HLDFLAGS=
|
||||
HLDENV=
|
||||
# If we have shared libraries, try to set rpath reasonably.
|
||||
if test "${shared}" = "true"; then
|
||||
case "${host}" in
|
||||
*-*-hpux*)
|
||||
HLDFLAGS='-Wl,+s,+b,$(libdir)'
|
||||
;;
|
||||
*-*-irix5* | *-*-irix6*)
|
||||
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
||||
;;
|
||||
*-*-linux*aout*)
|
||||
;;
|
||||
*-*-linux* | *-pc-linux-gnu*)
|
||||
HLDFLAGS='-Wl,-rpath,$(libdir)'
|
||||
;;
|
||||
*-*-solaris*)
|
||||
HLDFLAGS='-R $(libdir)'
|
||||
;;
|
||||
*-*-sysv4*)
|
||||
HLDENV='if test -z "$${LD_RUN_PATH}"; then LD_RUN_PATH=$(libdir); else LD_RUN_PATH=$${LD_RUN_PATH}:$(libdir); fi; export LD_RUN_PATH;'
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
# On SunOS, if the linker supports the -rpath option, use it to
|
||||
# prevent ../bfd and ../opcodes from being included in the run time
|
||||
# search path.
|
||||
case "${host}" in
|
||||
*-*-sunos*)
|
||||
echo 'main () { }' > conftest.c
|
||||
${CC} -o conftest -Wl,-rpath= conftest.c >/dev/null 2>conftest.t
|
||||
if grep 'unrecognized' conftest.t >/dev/null 2>&1; then
|
||||
:
|
||||
elif grep 'No such file' conftest.t >/dev/null 2>&1; then
|
||||
:
|
||||
elif grep 'do not mix' conftest.t >/dev/null 2>&1; then
|
||||
:
|
||||
elif grep 'some text already loaded' conftest.t >/dev/null 2>&1; then
|
||||
:
|
||||
elif test "${shared}" = "true"; then
|
||||
HLDFLAGS='-Wl,-rpath=$(libdir)'
|
||||
else
|
||||
HLDFLAGS='-Wl,-rpath='
|
||||
fi
|
||||
rm -f conftest.t conftest.c conftest
|
||||
;;
|
||||
esac
|
||||
AC_SUBST(HLDFLAGS)
|
||||
AC_SUBST(HLDENV)
|
||||
# End stuff to support --enable-shared
|
||||
|
||||
# target_subdir is used by the testsuite to find the target libraries.
|
||||
target_subdir=
|
||||
if test "${host}" != "${target}"; then
|
||||
|
|
Loading…
Reference in a new issue