Add --with-lib-patch configure switch.
This commit is contained in:
parent
f52e0eb852
commit
8e523c2334
16
ld/ChangeLog
16
ld/ChangeLog
@ -1,3 +1,19 @@
|
||||
2002-08-20 Dan Kegel <dank@kegel.com>
|
||||
|
||||
* configure.in: added --with-lib-path argument to ld's configure
|
||||
to set LIB_PATH.
|
||||
* ld/NEWS: Document new switch.
|
||||
* ld/README: Mention new switch.
|
||||
* configure: Regenerate.
|
||||
* Makefile.in: Regenerate.
|
||||
|
||||
Based on this patch:
|
||||
2001-04-25 Christopher Faylor <cgf@cygnus.com>
|
||||
|
||||
* Makefile.in (LIB_PATH): Make configurable.
|
||||
(GENSCRIPTS): Set LIB_PATH in environment.
|
||||
* configure.in: Substitute LIB_PATH.
|
||||
|
||||
2002-08-22 Adam Nemet <anemet@lnxw.com>
|
||||
|
||||
* emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
|
||||
|
@ -30,8 +30,9 @@ EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
|
||||
# (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
|
||||
# a cross-linker, in which case the default is empty. See genscripts.sh.)
|
||||
# Otherwise, they are replaced with the ones given in LIB_PATH,
|
||||
# which may have the form: LIB_PATH=/lib:/usr/local/lib
|
||||
LIB_PATH =
|
||||
# which may have the form: LIB_PATH=/lib:/usr/local/lib. This can be set
|
||||
# when the linker is configured via the --with-lib-path configure switch.
|
||||
LIB_PATH = @LIB_PATH@
|
||||
|
||||
BASEDIR = $(srcdir)/..
|
||||
BFDDIR = $(BASEDIR)/bfd
|
||||
@ -371,7 +372,7 @@ stringify.sed: ${srcdir}/emultempl/$(STRINGIFY)
|
||||
|
||||
# These all start with e so 'make clean' can find them.
|
||||
|
||||
GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
|
||||
GENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
|
||||
GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
|
||||
@TDIRS@
|
||||
|
||||
|
@ -136,8 +136,9 @@ EMUL_EXTRA_OFILES = @EMUL_EXTRA_OFILES@
|
||||
# (The default is usually /lib:/usr/lib:/usr/local/lib, unless building
|
||||
# a cross-linker, in which case the default is empty. See genscripts.sh.)
|
||||
# Otherwise, they are replaced with the ones given in LIB_PATH,
|
||||
# which may have the form: LIB_PATH=/lib:/usr/local/lib
|
||||
LIB_PATH =
|
||||
# which may have the form: LIB_PATH=/lib:/usr/local/lib. This can be set
|
||||
# when the linker is configured via the --with-lib-path configure switch.
|
||||
LIB_PATH = @LIB_PATH@
|
||||
|
||||
BASEDIR = $(srcdir)/..
|
||||
BFDDIR = $(BASEDIR)/bfd
|
||||
@ -463,7 +464,7 @@ POTFILES = $(CFILES) $(HFILES) $(EMULATION_FILES)
|
||||
|
||||
# These all start with e so 'make clean' can find them.
|
||||
|
||||
GENSCRIPTS = $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
|
||||
GENSCRIPTS = LIB_PATH='${LIB_PATH}' $(SHELL) $(srcdir)/genscripts.sh ${srcdir} ${libdir} "${exec_prefix}" @host@ @target@ @target_alias@ "@EMULATION_LIBPATH@" "@NATIVE_LIB_DIRS@"
|
||||
GEN_DEPENDS = $(srcdir)/genscripts.sh stringify.sed
|
||||
|
||||
# We need this for automake to use YLWRAP.
|
||||
|
3
ld/NEWS
3
ld/NEWS
@ -1,5 +1,8 @@
|
||||
-*- text -*-
|
||||
|
||||
* Added --with-lib-path configure switch to specify default value for
|
||||
LIB_PATH.
|
||||
|
||||
* ARM port to QNX operating system added by Graeme Peterson.
|
||||
|
||||
* IP2K support added by Denis Chertykov.
|
||||
|
@ -28,7 +28,8 @@ See ../binutils/README.
|
||||
|
||||
If you want to make a cross-linker, you may want to specify
|
||||
a different search path of -lfoo libraries than the default.
|
||||
You can do this by setting the LIB_PATH variable in ./Makefile.
|
||||
You can do this by setting the LIB_PATH variable in ./Makefile
|
||||
or using the --with-lib-path configure switch.
|
||||
|
||||
To build just the linker, make the target all-ld from the top level
|
||||
directory (one directory above this one).
|
||||
|
408
ld/configure
vendored
408
ld/configure
vendored
File diff suppressed because it is too large
Load Diff
@ -13,6 +13,7 @@ AM_INIT_AUTOMAKE(ld, ${BFD_VERSION})
|
||||
|
||||
AM_PROG_LIBTOOL
|
||||
|
||||
AC_ARG_WITH(lib-path, [ --with-lib-path=dir1:dir2... set default LIB_PATH],LIB_PATH=$withval)
|
||||
AC_ARG_ENABLE(targets,
|
||||
[ --enable-targets alternative target configurations],
|
||||
[case "${enableval}" in
|
||||
@ -31,7 +32,7 @@ esac],[want64=false])dnl
|
||||
|
||||
build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
|
||||
AC_ARG_ENABLE(build-warnings,
|
||||
[ --enable-build-warnings Enable build-time compiler warnings if gcc is used],
|
||||
[ --enable-build-warnings enable build-time compiler warnings if gcc is used],
|
||||
[case "${enableval}" in
|
||||
yes) ;;
|
||||
no) build_warnings="-w";;
|
||||
@ -202,6 +203,7 @@ else
|
||||
fi
|
||||
AC_SUBST(EMULATION_OFILES)
|
||||
AC_SUBST(EMUL_EXTRA_OFILES)
|
||||
AC_SUBST(LIB_PATH)
|
||||
|
||||
EMULATION_LIBPATH=$all_libpath
|
||||
AC_SUBST(EMULATION_LIBPATH)
|
||||
|
Loading…
x
Reference in New Issue
Block a user