File: libffi-no-debug.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 (64 lines) | stat: -rw-r--r-- 1,669 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#! /bin/sh -e

# DP: Do not build libffi with debug information, although configuring
# DP: with --enable-debug

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

diff -ur gcc-3.3.5/libffi/configure src/libffi/configure
--- libffi/configure~	2004-05-12 17:13:57.000000000 +0200
+++ libffi/configure	2005-03-07 22:08:42.438788715 +0100
@@ -3639,18 +3649,6 @@
 
 
 
-# Check whether --enable-debug or --disable-debug was given.
-if test "${enable_debug+set}" = set; then
-  enableval="$enable_debug"
-  if test "$enable_debug" = "yes"; then
-    cat >> confdefs.h <<\EOF
-#define FFI_DEBUG 1
-EOF
-
-  fi
-fi
-
-
 # Check whether --enable-structs or --disable-structs was given.
 if test "${enable_structs+set}" = set; then
   enableval="$enable_structs"
diff -ur gcc-3.3.5/libffi/configure.in src/libffi/configure.in
--- libffi/configure.in~	2003-08-09 08:59:00.000000000 +0200
+++ libffi/configure.in	2005-03-07 22:08:42.436789315 +0100
@@ -154,12 +156,6 @@
 
 AC_SUBST(SHELL)
 
-AC_ARG_ENABLE(debug,
-[  --enable-debug          debugging mode],
-  if test "$enable_debug" = "yes"; then
-    AC_DEFINE(FFI_DEBUG)
-  fi)
-
 AC_ARG_ENABLE(structs,
 [  --disable-structs       omit code for struct support],
   if test "$enable_structs" = "no"; then