Commit Graph

28 Commits

Author SHA1 Message Date
Sam James
71011d3cb1
ltmain.sh: allow more flags at link-time
libtool defaults to filtering flags passed at link-time.

This brings the filtering in GCC's 'fork' of libtool into sync with
upstream libtool commit 22a7e547e9857fc94fe5bc7c921d9a4b49c09f8e.

In particular, this now allows some harmless diagnostic flags (especially
useful for things like -Werror=odr), more optimization flags, and some
Clang-specific options.

GCC's -flto documentation mentions:
> To use the link-time optimizer, -flto and optimization options should be
> specified at compile time and during the final link. It is recommended
> that you compile all the files participating in the same link with the
> same options and also specify those options at link time.

This allows compliance with that.

	* ltmain.sh (func_mode_link): Allow various flags through filter.
2024-09-25 19:06:10 +01:00
Martin Liska
af5478e1f3 Do not use HAVE_DOS_BASED_FILE_SYSTEM for Cygwin.
PR gcov-profile/94570
	* ltmain.sh: Do not define HAVE_DOS_BASED_FILE_SYSTEM
	for CYGWIN.

Co-Authored-By: Jonathan Yong <10walls@gmail.com>
2023-08-12 10:25:06 +09:30
Bernhard M. Wiedemann
14af24e0a8 libtool.m4: Sort output of 'find' to enable deterministic builds.
* libtool.m4: Sort output of 'find' to enable deterministic builds.
	* ltmain.sh: Likewise.
2023-08-12 10:25:06 +09:30
Rainer Orth
62a0f72335 PR target/59788
* ltmain.sh (opt_duplicate_compiler_generated_deps): Enable on
	*solaris2*.
2014-02-06 11:01:57 +01:00
Ralf Wildenhues
115ef890e5 Backport from Libtool: Fix relink mode to use absolute path if hardcode_minus_L.
/:
	* ltmain.sh (relink): Use absolute path when hardcoding with -L.
2011-01-13 18:52:53 +00:00
Ralf Wildenhues
3725885a65 Sync Libtool from GCC.
/:
	* libtool.m4: Sync from git Libtool.
	* ltmain.sh: Likewise.
	* ltoptions.m4: Likewise.
	* ltversion.m4: Likewise.
	* lt~obsolete.m4: Likewise.

sim/iq2000/:
	* configure: Regenerate.

sim/d10v/:
	* configure: Regenerate.

sim/m32r/:
	* configure: Regenerate.

sim/frv/:
	* configure: Regenerate.

sim/:
	* avr/configure: Regenerate.
	* cris/configure: Regenerate.
	* microblaze/configure: Regenerate.

sim/h8300/:
	* configure: Regenerate.

sim/mn10300/:
	* configure: Regenerate.

sim/erc32/:
	* configure: Regenerate.

sim/arm/:
	* configure: Regenerate.

sim/m68hc11/:
	* configure: Regenerate.

sim/lm32/:
	* configure: Regenerate.

sim/sh64/:
	* configure: Regenerate.

sim/v850/:
	* configure: Regenerate.

sim/cr16/:
	* configure: Regenerate.

sim/moxie/:
	* configure: Regenerate.

sim/m32c/:
	* configure: Regenerate.

sim/mips/:
	* configure: Regenerate.

sim/mcore/:
	* configure: Regenerate.

sim/sh/:
	* configure: Regenerate.

gprof/:
	* Makefile.in: Regenerate.
	* configure: Regenerate.

opcodes/:
	* Makefile.in: Regenerate.
	* configure: Regenerate.

gas/:
	* Makefile.in: Regenerate.
	* configure: Regenerate.
	* doc/Makefile.in: Regenerate.

ld/:
	* configure: Regenerate.

gdb/testsuite/:
	* gdb.cell/configure: Regenerate.

binutils/:
	* Makefile.in: Regenerate.
	* configure: Regenerate.
	* doc/Makefile.in: Regenerate.

bfd/:
	* Makefile.in: Regenerate.
	* configure: Regenerate.

bfd/doc/:
	* Makefile.in: Regenerate.
2010-01-09 21:11:44 +00:00
Dave Korn
a69e7d0a1e * ltmain.sh (func_normal_abspath): New function.
(func_relative_path): Likewise.
	(func_mode_help): Document new -bindir option for link mode.
	(func_mode_link): Add new -bindir option, and use it to place
	output DLL if specified.
2009-08-31 16:59:32 +00:00
Steve Ellcey
b25062aeb5 * libtool.m4: Update to libtool 2.2.6.
* lt~obsolete.m4: Update to libtool 2.2.6.
	* ltmain.sh: Update to libtool 2.2.6.
	* ltsugar.m4: Update to libtool 2.2.6.
	* ltversion.m4: Update to libtool 2.2.6.
	* ltoptions.m4: Update to libtool 2.2.6.
	* ltgcc.m4: Update to match changes from libtool 2.2.6.
2008-09-29 15:28:14 +00:00
Eric Christopher
0e7ef45cfb 2007-05-25 Andreas Tobler <a.tobler@schweiz.org>
* ltmain.sh: Fix Darwin verstring, remove ${wl}.
2007-05-25 19:56:24 +00:00
Steve Ellcey
37ad95141b * ltmain.sh: Update from GCC.
* libtool.m4: Update from GCC.
	* ltsugar.m4: New. Update from GCC.
	* ltversion.m4: New. Update from GCC.
	* ltoptions.m4: New. Update from GCC.
	* ltconfig: Remove.
	* ltcf-c.sh: Remove.
	* ltcf-cxx.sh: Remove.
	* ltcf-gcj.sh: Remove.
	* src-release: Update with new libtool file list.
	* newlib/*/configure.in: invoke _LD_DECL_SED.
	* newlib/*/Makefile.am: Ensure toplevel is included in ACLOCAL_AMFLAGS.
	* Regenerate subdirectories
2007-05-24 17:33:42 +00:00
H.J. Lu
65419985ef 2006-03-01 H.J. Lu <hongjiu.lu@intel.com>
PR libgcj/17311
	* ltmain.sh: Don't use "$finalize_rpath" for compile.
2006-03-01 17:40:34 +00:00
Kelley Cook
6e4d0bcbd2 2005-07-16 Kelley Cook <kcook@gcc.gnu.org>
* all files: Update FSF address.
2005-07-16 02:41:34 +00:00
Alexandre Oliva
33a3fb7b23 PR libgcj/20160
* ltmain.sh: Avoid creating archives with components that have
duplicate basenames.
2005-03-01 22:33:54 +00:00
Alexandre Oliva
ba3c59ab0d * ltmain.sh (relink_command): Fix typo in previous change. 2002-03-16 14:43:09 +00:00
Alexandre Oliva
6243d5dd94 * ltmain.sh (taglist): Initialized. Don't let `CC' tag out of it.
(relink_command): Added --tag flags.
(mode=install): If relinking fails; error out.
2002-03-15 23:05:24 +00:00
Jeff Holcomb
4a02fdb219 2001-11-13 Jeff Holcomb <jeffh@redhat.com>
Merged from net gcc:
	2001-07-30  Jeff Sturm  <jsturm@one-pont.com>
	* ltcf-c.sh: Use $objext, not $ac_objext.
	2001-07-27  Mark Kettenis  <kettenis@gnu.org>
	* ltcf-cxx.sh: Add support for GNU.
	2001-07-22  Timothy Wall  <twall@redhat.com>
	* ltcf-c.sh: Don't disable shared libraries for AIX5/IA64.  Preserve
	default settings if using GNU tools with that configuration.
	* ltcf-cxx.sh: Ditto.
	* ltcf-gcj.sh: Ditto.
	2001-07-21  Michael Chastain  <chastain@redhat.com>
	* ltconfig: Set max_cmd_len to a maximum of 512Kb, as it seems some
	HPUX 11.0 systems have trouble with 1MB.  Mark as gcc-local.
	* ltmain.sh: Mark as gcc-local.
2001-11-14 06:24:41 +00:00
Alexandre Oliva
1605288ba4 * ltconfig, ltmain.sh: Upgrade to libtool 1.4a 1.641.2.256. 2001-05-28 20:56:20 +00:00
Alexandre Oliva
6be7c12c05 * ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.254.  Rebuilt a number
of subdir/configure scripts to use the new libtool.m4.
2001-05-20 19:02:56 +00:00
Alexandre Oliva
b5bf43f253 * ltconfig, ltmain.sh, ltcf-cxx.sh: Upgraded to libtool 1.4a
1.641.2.228.
2001-04-20 09:28:05 +00:00
Alexandre Oliva
8cc32590dd * ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.226.
2001-04-12 12:32:00 +00:00
Alexandre Oliva
469b781cfb * ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh, ltcf-cxx.sh,
ltcf-gcj.sh: Upgraded to libtool 1.4a 1.641.2.198.
2001-03-22 05:22:04 +00:00
Alexandre Oliva
f332af5233 * ltmain.sh (TAG disable-shared, TAG disable-static): Make sure we
keep at least one of build_libtool_libs or build_old_libs set to
yes.
2001-01-24 20:09:37 +00:00
Alexandre Oliva
d64552c589 * ltconfig, ltmain.sh, libtool.m4: Updated from libtool
multi-language branch, to work around Solaris' /bin/sh bug.  Rebuilt
all affected `configure' scripts.
2000-09-30 06:07:00 +00:00
Alexandre Oliva
103a2e995c * ltconfig, ltmain.sh, libtool.m4, ltcf-c.sh: Updated from libtool
multi-language branch.
2000-09-06 13:27:41 +00:00
Alexandre Oliva
6cf86f7f46 * ltconfig, ltmain.sh: Updated from libtool multi-language branch.
* libtool.m4, ltcf-c.sh: Copied from libtool multi-language branch.
* gettext.m4: New file, extracted from aclocal.m4.
2000-08-31 09:25:11 +00:00
H.J. Lu
7c86ed394a 2000-05-13 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
* ltmain.sh: Preserve in relink_command any environment
	variables that may affect the linker behavior.
2000-05-13 21:19:50 +00:00
Ian Lance Taylor
2031769e32 * ltconfig, ltmain.sh: Update to libtool 1.3.4. 2000-02-27 16:46:19 +00:00
Richard Henderson
252b5132c7 19990502 sourceware import 1999-05-03 07:29:11 +00:00