File: disable-ld-as-needed.dpatch

package info (click to toggle)
gcc-3.3 1%3A3.3.6ds1-28
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 25,812 kB
  • ctags: 262
  • sloc: sh: 10,321; makefile: 1,050; perl: 155; awk: 23; cpp: 14
file content (45 lines) | stat: -rw-r--r-- 1,276 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#! /bin/sh -e

# DP: disable ld --as-needed option, although binutils may support it.

dir=
if [ $# -eq 3 -a "$2" = '-d' ]; then
    pdir="-d $3"
    dir="$3/"
elif [ $# -ne 1 ]; then
    echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
    exit 1
fi
case "$1" in
    -patch)
        patch $pdir -f --no-backup-if-mismatch -p0 < $0
        ;;
    -unpatch)
        patch $pdir -f --no-backup-if-mismatch -R -p0 < $0
        ;;
    *)
        echo >&2 "`basename $0`: script expects -patch|-unpatch as argument"
        exit 1
esac
exit 0

--- gcc/configure.in~	2004-08-30 01:28:39.000000000 +0200
+++ gcc/configure.in	2004-08-30 01:31:20.000000000 +0200
@@ -2450,6 +2450,7 @@
 		gcc_cv_ld_as_needed=yes
 	fi
 fi
+gcc_cv_ld_as_needed=no # Disabled despite binutils support
 if test x"$gcc_cv_ld_as_needed" = xyes; then
 	AC_DEFINE(HAVE_LD_AS_NEEDED, 1,
 [Define if your linker supports --as-needed and --no-as-needed options.])
--- gcc/configure~	2004-04-01 18:55:23.000000000 +0200
+++ gcc/configure	2004-08-30 01:29:16.000000000 +0200
@@ -8132,6 +8132,7 @@
 		gcc_cv_ld_as_needed=yes
 	fi
 fi
+gcc_cv_ld_as_needed=no # Disabled despite binutils support
 if test x"$gcc_cv_ld_as_needed" = xyes; then
 	cat >> confdefs.h <<\EOF
 #define HAVE_LD_AS_NEEDED 1