[neon/qt/qtcreator/Neon/release] debian: build using -gdwarf-4 with clang

Pino Toscano null at kde.org
Mon Jan 16 22:09:48 GMT 2023


Git commit 5474248dbe2b596ccc700a273316ba64a5358147 by Pino Toscano.
Committed on 28/11/2022 at 06:28.
Pushed by carlosdem into branch 'Neon/release'.

build using -gdwarf-4 with clang

M  +5    -0    debian/changelog
M  +2    -0    debian/rules

https://invent.kde.org/neon/qt/qtcreator/commit/5474248dbe2b596ccc700a273316ba64a5358147

diff --git a/debian/changelog b/debian/changelog
index 499864f..aaa4ed9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,10 @@
 qtcreator (9.0.0-3) UNRELEASED; urgency=medium
 
+  [ Pino Toscano ]
+  * When building with clang, force the v4 of the DWARF info: apparently the
+    DWARF v5 that clang produces are not fully supported by dwz (see also
+    #1016936):
+    - append -gdwarf-4 to CFLAGS and CXXFLAGS
 
  -- Debian Qt/KDE Maintainers <debian-qt-kde at lists.debian.org>  Mon, 28 Nov 2022 07:25:12 +0100
 
diff --git a/debian/rules b/debian/rules
index 01a9c8b..a80bb0f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -23,6 +23,8 @@ archs_using_clang = mips64el mipsel
 ifeq ($(DEB_HOST_ARCH),$(findstring $(DEB_HOST_ARCH), $(archs_using_clang)))
 export CC=clang
 export CXX=clang++
+export DEB_CFLAGS_MAINT_APPEND := -gdwarf-4
+export DEB_CXXFLAGS_MAINT_APPEND := -gdwarf-4
 export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
 EXTRA_CMAKE_ARGS += -DBUILD_WITH_PCH=OFF
 endif



More information about the Neon-commits mailing list