~ubuntu-branches/ubuntu/vivid/gccgo-5/vivid-updates

« back to all changes in this revision

Viewing changes to debian/rules2

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2015-02-26 08:23:14 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20150226082314-ajakcli5v70mb3r7
Tags: 5-20150226-1ubuntu1
Update to SVN 20150226.

Show diffs side-by-side

added added

removed removed

Lines of Context:
88
88
  CC    =
89
89
else
90
90
  CC    = $(if $(filter yes,$(with_ada)),gnatgcc,gcc)
 
91
  ifneq (,$(filter $(DEB_TARGET_ARCH), arm64))
 
92
    CC  = gcc-4.9
 
93
  endif
91
94
endif
92
95
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_TARGET_GNU_TYPE))
93
96
  CC_FOR_TARGET = $(builddir)/gcc/xgcc -B$(builddir)/gcc/
1066
1069
        rm -rf $(builddir)
1067
1070
        mkdir $(builddir)
1068
1071
 
 
1072
        : # some tools like gettext are built with a newer libstdc++
 
1073
        mkdir -p bin
 
1074
        for i in msgfmt; do \
 
1075
          install -m755 debian/bin-wrapper.in bin/$$i; \
 
1076
        done
 
1077
 
1069
1078
        : # configure
1070
1079
        cd $(builddir) \
1071
1080
          && $(SET_PATH) \
1214
1223
        touch $(build_stamp)
1215
1224
 
1216
1225
CONFARGS_JIT := \
1217
 
        $(filter-out %bootstrap --enable-languages=%, $(CONFARGS)) \
 
1226
        $(filter-out --enable-languages=%, $(CONFARGS)) \
1218
1227
        --enable-languages=jit \
1219
 
        --enable-host-shared \
 
1228
        --enable-host-shared
 
1229
 
 
1230
# see Linaro#1149
 
1231
ifeq (,$(filter $(DEB_TARGET_ARCH),arm64))
 
1232
  CONFARGS_JIT := \
 
1233
        $(filter-out %bootstrap, $(CONFARGS_JIT)) \
1220
1234
        --disable-bootstrap
 
1235
endif
1221
1236
 
1222
1237
# FIXME: this doesn't yet work, use the system g++ for the builds
1223
1238
CC_FOR_JIT = $(builddir)/gcc/xg++ -B$(builddir)/gcc/ \
1256
1271
 
1257
1272
ifeq ($(DEB_CROSS),yes)
1258
1273
  CC_for_hppa64_cross = $(CC)
 
1274
  CCX_for_hppa64_cross = $(CXX)
1259
1275
else
1260
 
  CC_for_hppa64_cross = $(builddir)/gcc/xg++ -B$(builddir)/gcc/
 
1276
  CC_for_hppa64_cross = $(builddir)/gcc/xgcc -B$(builddir)/gcc/
 
1277
  CXX_for_hppa64_cross = $(builddir)/gcc/xg++ -B$(builddir)/gcc/ \
 
1278
                -B$(builddir)/hppa-linux-gnu/libstdc++-v3/src/.libs \
 
1279
                -B$(builddir)/hppa-linux-gnu/libstdc++-v3/libsupc++/.libs \
 
1280
                -I$(builddir)/hppa-linux-gnu/libstdc++-v3/include \
 
1281
                -I$(builddir)/hppa-linux-gnu/libstdc++-v3/include/hppa-linux-gnu \
 
1282
                -I$(srcdir)/libstdc++-v3/libsupc++ \
 
1283
                -L$(builddir)/hppa-linux-gnu/libstdc++-v3/src/.libs \
 
1284
                -L$(builddir)/hppa-linux-gnu/libstdc++-v3/libsupc++/.libs
1261
1285
endif
1262
1286
 
1263
1287
ifeq ($(versioned_packages),yes)
1274
1298
          $(SET_PATH) \
1275
1299
          $(SET_SHELL) \
1276
1300
          CC="$(CC_for_hppa64_cross)" \
 
1301
          CXX="$(CXX_for_hppa64_cross)" \
1277
1302
             ../src/configure \
1278
1303
                --enable-languages=c \
1279
1304
                --prefix=/$(PF) \
2237
2262
endif
2238
2263
 
2239
2264
        for i in ar nm ranlib; do \
2240
 
          cp debian/gcc-$$i$(pkg_ver).1 $(d)/$(PF)/share/man/man1/$(cmd_prefix)gcc-$$i$(pkg_ver).1; \
 
2265
          cp debian/gcc-$$i-$(BASE_VERSION).1 \
 
2266
            $(d)/$(PF)/share/man/man1/$(cmd_prefix)gcc-$$i$(pkg_ver).1; \
2241
2267
        done
2242
2268
 
2243
2269
        chmod 755 debian/dh_*