~ubuntu-branches/debian/sid/gcc-4.8/sid

« back to all changes in this revision

Viewing changes to .svn/pristine/4a/4a9737d725a6d1611a73c38f8454905d811effbb.svn-base

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2014-12-19 19:48:34 UTC
  • Revision ID: package-import@ubuntu.com-20141219194834-4dz1q7rrn5pad823
Tags: 4.8.4-1
* GCC 4.8.4 release.
  - Fix PR target/61407 (darwin), PR middle-end/58624 (ice),
    PR sanitizer/64265 (wrong code).
* Require recent binutils to pass go test failures.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
ifeq ($(with_libobjc),yes)
 
2
  $(lib_binaries) += libobjc
 
3
endif
 
4
ifeq ($(with_objcdev),yes)
 
5
  $(lib_binaries) += libobjc-dev
 
6
endif
 
7
ifeq ($(with_lib64objc),yes)
 
8
  $(lib_binaries)       += lib64objc
 
9
endif
 
10
ifeq ($(with_lib64objcdev),yes)
 
11
  $(lib_binaries)       += lib64objc-dev
 
12
endif
 
13
ifeq ($(with_lib32objc),yes)
 
14
  $(lib_binaries)       += lib32objc
 
15
endif
 
16
ifeq ($(with_lib32objcdev),yes)
 
17
  $(lib_binaries)       += lib32objc-dev
 
18
endif
 
19
ifeq ($(with_libn32objc),yes)
 
20
  $(lib_binaries)       += libn32objc
 
21
endif
 
22
ifeq ($(with_libn32objcdev),yes)
 
23
  $(lib_binaries)       += libn32objc-dev
 
24
endif
 
25
ifeq ($(with_libx32objc),yes)
 
26
  $(lib_binaries)       += libx32objc
 
27
endif
 
28
ifeq ($(with_libx32objcdev),yes)
 
29
  $(lib_binaries)       += libx32objc-dev
 
30
endif
 
31
ifeq ($(with_libhfobjc),yes)
 
32
  $(lib_binaries)       += libhfobjc
 
33
endif
 
34
ifeq ($(with_libhfobjcdev),yes)
 
35
  $(lib_binaries)       += libhfobjc-dev
 
36
endif
 
37
ifeq ($(with_libsfobjc),yes)
 
38
  $(lib_binaries)       += libsfobjc
 
39
endif
 
40
ifeq ($(with_libsfobjcdev),yes)
 
41
  $(lib_binaries)       += libsfobjc-dev
 
42
endif
 
43
 
 
44
files_lobjcdev= \
 
45
        $(gcc_lib_dir)/include/objc
 
46
 
 
47
files_lobjc = \
 
48
        $(usr_lib$(2))/libobjc.so.*
 
49
ifeq ($(with_objc_gc),yes)
 
50
  files_lobjc += \
 
51
        $(usr_lib$(2))/libobjc_gc.so.*
 
52
endif
 
53
 
 
54
define __do_libobjc
 
55
        dh_testdir
 
56
        dh_testroot
 
57
        mv $(install_stamp) $(install_stamp)-tmp
 
58
 
 
59
        rm -rf $(d_l) $(d_d)
 
60
        dh_installdirs -p$(p_l) \
 
61
                $(usr_lib$(2))
 
62
        DH_COMPAT=2 dh_movefiles -p$(p_l) \
 
63
                $(files_lobjc)
 
64
 
 
65
        debian/dh_doclink -p$(p_l) $(p_base)
 
66
        debian/dh_doclink -p$(p_d) $(p_base)
 
67
 
 
68
        dh_strip -p$(p_l) --dbg-package=$(p_d)
 
69
        dh_compress -p$(p_l) -p$(p_d)
 
70
        dh_fixperms -p$(p_l) -p$(p_d)
 
71
        $(cross_makeshlibs) dh_makeshlibs -p$(p_l) -Xlibobjc_gc.so
 
72
        $(call cross_mangle_shlibs,$(p_l))
 
73
        DIRNAME=$(subst n,,$(2)) $(cross_shlibdeps) dh_shlibdeps -p$(p_l) \
 
74
                $(call shlibdirs_to_search,$(subst objc$(OBJC_SONAME),gcc$(GCC_SONAME),$(p_l)),$(2))
 
75
        $(call cross_mangle_substvars,$(p_l))
 
76
        $(cross_gencontrol) dh_gencontrol -p$(p_l) -p$(p_d) \
 
77
                -- -v$(DEB_VERSION) $(common_substvars)
 
78
        $(call cross_mangle_control,$(p_l))
 
79
        dh_installdeb -p$(p_l) -p$(p_d)
 
80
        dh_md5sums -p$(p_l) -p$(p_d)
 
81
        dh_builddeb -p$(p_l) -p$(p_d)
 
82
 
 
83
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
84
endef
 
85
 
 
86
 
 
87
define __do_libobjc_dev
 
88
        dh_testdir
 
89
        dh_testroot
 
90
        mv $(install_stamp) $(install_stamp)-tmp
 
91
 
 
92
        rm -rf $(d_l)
 
93
        dh_installdirs -p$(p_l) \
 
94
                $(gcc_lib_dir$(2))
 
95
        DH_COMPAT=2 dh_movefiles -p$(p_l) \
 
96
                $(files_lobjcdev)
 
97
 
 
98
        $(call install_gcc_lib,libobjc,$(OBJC_SONAME),$(2),$(p_l))
 
99
        $(if $(filter yes,$(with_objc_gc)),
 
100
                dh_link -p$(p_l) \
 
101
                  /$(usr_lib$(2))/libobjc_gc.so.$(OBJC_SONAME) \
 
102
                  /$(gcc_lib_dir$(2))/libobjc_gc.so
 
103
        )
 
104
 
 
105
        debian/dh_doclink -p$(p_l) $(p_base)
 
106
 
 
107
        dh_compress -p$(p_l)
 
108
        dh_fixperms -p$(p_l)
 
109
        $(cross_gencontrol) dh_gencontrol -p$(p_l) \
 
110
                -- -v$(DEB_VERSION) $(common_substvars)
 
111
        $(call cross_mangle_control,$(p_l))
 
112
        dh_installdeb -p$(p_l)
 
113
        dh_md5sums -p$(p_l)
 
114
        dh_builddeb -p$(p_l)
 
115
 
 
116
        trap '' 1 2 3 15; touch $@; mv $(install_stamp)-tmp $(install_stamp)
 
117
endef
 
118
 
 
119
 
 
120
 
 
121
# ----------------------------------------------------------------------
 
122
 
 
123
do_libobjc = $(call __do_libobjc,lib$(1)objc$(OBJC_SONAME),$(1))
 
124
do_libobjc_dev = $(call __do_libobjc_dev,lib$(1)objc-$(BASE_VERSION)-dev,$(1))
 
125
 
 
126
$(binary_stamp)-libobjc: $(install_stamp)
 
127
        $(call do_libobjc,)
 
128
 
 
129
$(binary_stamp)-lib64objc: $(install_stamp)
 
130
        $(call do_libobjc,64)
 
131
 
 
132
$(binary_stamp)-lib32objc: $(install_stamp)
 
133
        $(call do_libobjc,32)
 
134
 
 
135
$(binary_stamp)-libn32objc: $(install_stamp)
 
136
        $(call do_libobjc,n32)
 
137
 
 
138
$(binary_stamp)-libx32objc: $(install_stamp)
 
139
        $(call do_libobjc,x32)
 
140
 
 
141
$(binary_stamp)-libhfobjc: $(install_stamp)
 
142
        $(call do_libobjc,hf)
 
143
 
 
144
$(binary_stamp)-libsfobjc: $(install_stamp)
 
145
        $(call do_libobjc,sf)
 
146
 
 
147
 
 
148
$(binary_stamp)-libobjc-dev: $(install_stamp)
 
149
        $(call do_libobjc_dev,)
 
150
 
 
151
$(binary_stamp)-lib64objc-dev: $(install_stamp)
 
152
        $(call do_libobjc_dev,64)
 
153
 
 
154
$(binary_stamp)-lib32objc-dev: $(install_stamp)
 
155
        $(call do_libobjc_dev,32)
 
156
 
 
157
$(binary_stamp)-libx32objc-dev: $(install_stamp)
 
158
        $(call do_libobjc_dev,x32)
 
159
 
 
160
$(binary_stamp)-libn32objc-dev: $(install_stamp)
 
161
        $(call do_libobjc_dev,n32)
 
162
 
 
163
$(binary_stamp)-libhfobjc-dev: $(install_stamp)
 
164
        $(call do_libobjc_dev,hf)
 
165
 
 
166
$(binary_stamp)-libsfobjc-dev: $(install_stamp)
 
167
        $(call do_libobjc_dev,sf)
 
168