-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from sailfishos/jb55592
[binutils] Update to 2.40. Fixes JB#55592
- Loading branch information
Showing
18 changed files
with
308 additions
and
2,868 deletions.
There are no files selected for viewing
56 changes: 56 additions & 0 deletions
56
rpm/0001-configure-remove-dependencies-on-gmp-and-mpfr-when-g.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
From 5fb0e308577143ceb313fde5538dc9ecb038f29f Mon Sep 17 00:00:00 2001 | ||
From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= <chigot@adacore.com> | ||
Date: Tue, 3 Jan 2023 14:24:43 +0100 | ||
Subject: [PATCH] configure: remove dependencies on gmp and mpfr when gdb is | ||
disabled | ||
|
||
Since 991180627851801f1999d1ebbc0e569a17e47c74, the configure checks | ||
about GMP and MPFR for gdb builds have been moved to the toplevel | ||
configure. | ||
However, it doesn't take into account the --disable-gdb option. Meaning | ||
that a build without gdb will require these libraries even if not | ||
needed. | ||
|
||
ChangeLog: | ||
|
||
* configure.ac: Skip GMP and MPFR when --disable-gdb is | ||
provided. | ||
* configure: Regenerate. | ||
--- | ||
configure | 4 +++- | ||
configure.ac | 4 +++- | ||
2 files changed, 6 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/configure b/configure | ||
index 417fc5a970c..9cb953a197e 100755 | ||
--- a/configure | ||
+++ b/configure | ||
@@ -8032,7 +8032,9 @@ if test -d ${srcdir}/gcc ; then | ||
require_mpc=yes | ||
fi | ||
if test -d ${srcdir}/gdb ; then | ||
- require_gmp=yes | ||
+ if test "x$enable_gdb" != xno; then | ||
+ require_gmp=yes | ||
+ fi | ||
fi | ||
|
||
gmplibs="-lmpfr -lgmp" | ||
diff --git a/configure.ac b/configure.ac | ||
index 3a1eb0357e5..e95a9ed116e 100644 | ||
--- a/configure.ac | ||
+++ b/configure.ac | ||
@@ -1585,7 +1585,9 @@ if test -d ${srcdir}/gcc ; then | ||
require_mpc=yes | ||
fi | ||
if test -d ${srcdir}/gdb ; then | ||
- require_gmp=yes | ||
+ if test "x$enable_gdb" != xno; then | ||
+ require_gmp=yes | ||
+ fi | ||
fi | ||
|
||
gmplibs="-lmpfr -lgmp" | ||
-- | ||
2.25.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
diff -ru binutils-2.25/ld/ldmain.c binutils-2.25-asneeded/ld/ldmain.c | ||
--- binutils-2.25/ld/ldmain.c 2014-10-14 07:32:04.000000000 +0000 | ||
+++ binutils-2.25-asneeded/ld/ldmain.c 2016-05-02 07:03:16.952477306 +0000 | ||
@@ -302,6 +302,8 @@ main (int argc, char **argv) | ||
#ifdef DEFAULT_NEW_DTAGS | ||
link_info.new_dtags = DEFAULT_NEW_DTAGS; | ||
diff --git a/ld/ldmain.c b/ld/ldmain.c | ||
index 9290a189b0d..86fb10dc011 100644 | ||
--- a/ld/ldmain.c | ||
+++ b/ld/ldmain.c | ||
@@ -307,6 +307,8 @@ main (int argc, char **argv) | ||
yydebug = 1; | ||
} | ||
#endif | ||
+ if (getenv ("LD_AS_NEEDED") && atoi(getenv ("LD_AS_NEEDED")) > 0) | ||
+ input_flags.add_DT_NEEDED_for_regular = TRUE; | ||
+ input_flags.add_DT_NEEDED_for_regular = true; | ||
|
||
ldfile_add_arch (""); | ||
emulation = get_emulation (argc, argv); | ||
config.build_constructors = true; | ||
config.rpath_separator = ':'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.