SHA256
3
0
forked from pool/binutils
binutils/binutils-build-as-needed.diff
Michael Matz 37dd0d09c6 Use the SLE11 SP1 binutils for now.
- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

- Copy from SLE11 SP1.  Compared to that add --as-needed by default
  patch again.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=9
2009-11-23 13:16:14 +00:00

14 lines
519 B
Diff

Index: ld/ldmain.c
===================================================================
--- ld/ldmain.c.orig 2009-11-23 14:03:09.000000000 +0100
+++ ld/ldmain.c 2009-11-23 14:03:10.000000000 +0100
@@ -277,6 +277,8 @@ main (int argc, char **argv)
link_info.pei386_auto_import = -1;
link_info.spare_dynamic_tags = 5;
link_info.path_separator = ':';
+ if (getenv ("SUSE_ASNEEDED") && atoi(getenv ("SUSE_ASNEEDED")) > 0)
+ as_needed = TRUE;
ldfile_add_arch ("");
emulation = get_emulation (argc, argv);