~ubuntu-branches/ubuntu/quantal/zeroc-ice/quantal

« back to all changes in this revision

Viewing changes to debian/patches/10-debug-flags.patch

  • Committer: Bazaar Package Importer
  • Author(s): Cleto Martin Angelina
  • Date: 2011-04-25 18:44:24 UTC
  • mfrom: (6.1.14 sid)
  • Revision ID: james.westby@ubuntu.com-20110425184424-sep9i9euu434vq4c
Tags: 3.4.1-7
* Bug fix: "libdb5.1-java.jar was renamed to db.jar", thanks to Ondřej
  Surý (Closes: #623555).
* Bug fix: "causes noise in php5", thanks to Jayen Ashar (Closes:
  #623533).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
diff -Nur -x '*.orig' -x '*~' zeroc-ice/cpp/config/Make.rules.Linux zeroc-ice.new/cpp/config/Make.rules.Linux
2
 
--- zeroc-ice/cpp/config/Make.rules.Linux       2008-04-05 19:34:33.000000000 +0200
3
 
+++ zeroc-ice.new/cpp/config/Make.rules.Linux   2008-04-05 19:37:20.000000000 +0200
4
 
@@ -28,7 +28,7 @@
5
 
 #
6
 
 # icecpp is built with a C compiler
7
 
 #
8
 
-CFLAGS = -O2
9
 
+CFLAGS = -g -O2
10
 
 
11
 
 ifeq ($(MACHINE),x86_64)
12
 
    ifeq ($(LP64),yes)
13
 
@@ -85,19 +85,19 @@
14
 
    endif
15
 
 
16
 
    ifeq ($(OPTIMIZE),yes)
17
 
-      CXXFLAGS         += -O2 -DNDEBUG
18
 
+      CXXFLAGS         += -g -O2 -DNDEBUG
19
 
    else
20
 
       CXXFLAGS         += -g 
21
 
    endif
22
 
 
23
 
    ifeq ($(USE_SPARC_ASM),yes)
24
 
-      CFLAGS           = -O2 -mcpu=ultrasparc -pipe -DNDEBUG -DUSE_SPARC_ASM
25
 
+      CFLAGS           = -g -O2 -mcpu=ultrasparc -pipe -DNDEBUG -DUSE_SPARC_ASM
26
 
       ifneq ($(GENPIC),no)
27
 
          CFLAGS                += -fPIC
28
 
       endif
29
 
    endif
30
 
    ifeq ($(USE_SPARC_ASM),no)
31
 
-      CFLAGS           = -O2 -mcpu=v8 -pipe -DNDEBUG -DICE_USE_MUTEX_SHARED
32
 
+      CFLAGS           = -g -O2 -mcpu=v8 -pipe -DNDEBUG -DICE_USE_MUTEX_SHARED
33
 
       ifneq ($(GENPIC),no)
34
 
          CFLAGS                += -fPIC
35
 
       endif
 
1
--- a/cpp/config/Make.rules.Linux
 
2
+++ b/cpp/config/Make.rules.Linux
 
3
@@ -41,12 +41,12 @@
 
4
       #
 
5
       # We are an ultra, at least, and so have the atomic instructions
 
6
       #
 
7
-      $(warning ===================================================================) 
 
8
+      $(warning ===================================================================)
 
9
       $(warning Linux on SPARC is currently unsupported. The Ice team does not)
 
10
       $(warning maintain SPARC specific portions of the source code or build)
 
11
       $(warning system. Contact sales@zeroc.com if you wish to sponsor official)
 
12
       $(warning support.)
 
13
-      $(warning ===================================================================) 
 
14
+      $(warning ===================================================================)
 
15
       USE_SPARC_ASM    = yes
 
16
       CXXARCHFLAGS     += -mcpu=ultrasparc -pipe -Wno-deprecated -DUSE_SPARC_ASM
 
17
    endif
 
18
@@ -57,12 +57,12 @@
 
19
       # On sun4m, there is a bug in some CPU/kernel/gcc configurations which
 
20
       # prevent us from using '-mcpu=v8'
 
21
       #
 
22
-      $(warning ===================================================================) 
 
23
+      $(warning ===================================================================)
 
24
       $(warning Linux on SPARC is currently unsupported. The Ice team does not)
 
25
       $(warning maintain SPARC specific portions of the source code or build)
 
26
       $(warning system. Contact sales@zeroc.com if you wish to sponsor official)
 
27
       $(warning support.)
 
28
-      $(warning ===================================================================) 
 
29
+      $(warning ===================================================================)
 
30
       USE_SPARC_ASM    = no
 
31
       CXXARCHFLAGS     += -mtune=v8 -pipe -Wno-deprecated -DICE_USE_MUTEX_SHARED
 
32
    endif
 
33
@@ -82,9 +82,9 @@
 
34
    endif
 
35
 
 
36
    ifeq ($(OPTIMIZE),yes)
 
37
-      CXXFLAGS         += -O2 -DNDEBUG
 
38
+      CXXFLAGS         += -g -O2 -DNDEBUG
 
39
    else
 
40
-      CXXFLAGS         += -g 
 
41
+      CXXFLAGS         += -g
 
42
    endif
 
43
 
 
44
    #
 
45
@@ -96,10 +96,10 @@
 
46
 
 
47
    mklib               = ar cr $(1) $(2)
 
48
 
 
49
-   rpathlink            = -Wl,-rpath-link,$(1) 
 
50
+   rpathlink            = -Wl,-rpath-link,$(1)
 
51
 
 
52
    ifneq ($(embedded_runpath_prefix),)
 
53
-      LDPLATFORMFLAGS      = -Wl,--enable-new-dtags -Wl,-rpath,$(runpath_libdir)
 
54
+      LDPLATFORMFLAGS      = -Wl,--enable-new-dtags
 
55
    else
 
56
       LDPLATFORMFLAGS      = -Wl,--enable-new-dtags
 
57
    endif
 
58
@@ -109,20 +109,20 @@
 
59
 endif
 
60
 
 
61
 ifeq ($(CXX),icpc)
 
62
-   $(warning ===================================================================) 
 
63
+   $(warning ===================================================================)
 
64
    $(warning Intel C++ is currently not supported. The Ice team does not)
 
65
    $(warning maintain Intel C++ specific portions of the source code or build)
 
66
    $(warning system.  Contact sales@zeroc.com if you wish to sponsor official)
 
67
    $(warning support.)
 
68
-   $(warning ===================================================================) 
 
69
-   CXXFLAGS            = -D_REENTRANT    
 
70
+   $(warning ===================================================================)
 
71
+   CXXFLAGS            = -D_REENTRANT
 
72
 
 
73
    ifneq ($(GENPIC),no)
 
74
       CXXFLAGS         += -fPIC
 
75
    endif
 
76
 
 
77
    ifeq ($(OPTIMIZE),yes)
 
78
-      CXXFLAGS         += -O2 -DNDEBUG
 
79
+      CXXFLAGS         += -g -O2 -DNDEBUG
 
80
    else
 
81
       CXXFLAGS         += -g
 
82
    endif
36
83
@@ -136,7 +136,7 @@
37
 
    endif
38
 
 
39
 
    ifeq ($(OPTIMIZE),yes)
40
 
-      CXXFLAGS         += -O2 -DNDEBUG
41
 
+      CXXFLAGS         += -g -O2 -DNDEBUG
42
 
    else
43
 
       CXXFLAGS         += -g
44
 
    endif
 
84
 
 
85
    mklib               = ar cr $(1) $(2)
 
86
 
 
87
-   rpathlink            = -Wl,-rpath-link,$(1) 
 
88
+   rpathlink            = -Wl,-rpath-link,$(1)
 
89
 
 
90
 endif
 
91
 
 
92
@@ -154,7 +154,7 @@
 
93
    QT_RPATH_LINK        = $(call rpathlink,$(QT_HOME)/$(libsubdir))
 
94
 endif
 
95
 
 
96
-ICEUTIL_OS_LIBS         = 
 
97
+ICEUTIL_OS_LIBS         =
 
98
 ICE_OS_LIBS             = -ldl
 
99
 
 
100
 PLATFORM_HAS_READLINE   = yes