Merge lp:~vorlon/platform-api/explicit-gcc-version into lp:platform-api

Proposed by Steve Langasek
Status: Merged
Merged at revision: 245
Proposed branch: lp:~vorlon/platform-api/explicit-gcc-version
Merge into: lp:platform-api
Diff against target: 37 lines (+14/-0)
2 files modified
debian/control (+4/-0)
debian/rules (+10/-0)
To merge this branch: bzr merge lp:~vorlon/platform-api/explicit-gcc-version
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Approve
Colin Watson Pending
Matthias Klose Pending
Ricardo Mendoza Pending
Review via email: mp+226566@code.launchpad.net

Commit message

Explicitly select g++-4.9 to prevent from ABI breaks.

Description of the change

Explicitly select g++-4.9 to prevent from ABI breaks.

To post a comment you must log in.
236. By Steve Langasek

Revert changelog entry, causing merge conflicts

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/control'
2--- debian/control 2014-07-01 09:32:25 +0000
3+++ debian/control 2014-07-12 06:47:42 +0000
4@@ -7,6 +7,10 @@
5 debhelper (>= 9),
6 doxygen,
7 graphviz,
8+# We rely on C++11 features, and to prevent from ABI breaks
9+# in libstdc++ causing us issues, we explicitly select a G++
10+# version.
11+ g++-4.9,
12 libgles2-mesa-dev,
13 libhybris-common-dev,
14 pkg-config,
15
16=== modified file 'debian/rules'
17--- debian/rules 2014-05-20 14:24:10 +0000
18+++ debian/rules 2014-07-12 06:47:42 +0000
19@@ -2,9 +2,19 @@
20
21 DPKG_GENSYMBOLS_CHECK_LEVEL = 4
22
23+include /usr/share/dpkg/default.mk
24+
25+# Explicitly selecting a G{CC,++}-version here to avoid accidental
26+# ABI breaks introduced by toolchain updates.
27+export CC=$(DEB_HOST_GNU_TYPE)-gcc-4.9
28+export CXX=$(DEB_HOST_GNU_TYPE)-g++-4.9
29+
30 %:
31 dh $@
32
33+override_dh_auto_configure:
34+ dh_auto_configure -- -DCMAKE_C_COMPILER=$(CC) -DCMAKE_CXX_COMPILER=$(CXX)
35+
36 override_dh_install:
37 dh_install --fail-missing
38

Subscribers

People subscribed via source and target branches