From c39418ed92f556dc4629ed53b37ba1f3cead46e7 Mon Sep 17 00:00:00 2001 From: John Date: Tue, 5 May 2020 23:41:54 +0200 Subject: [PATCH] chromium: create debug package on 64bit archs [ci skip] --- srcpkgs/chromium/template | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template index d25cd8fba99..24196eec067 100644 --- a/srcpkgs/chromium/template +++ b/srcpkgs/chromium/template @@ -12,7 +12,6 @@ distfiles="https://commondatastorage.googleapis.com/chromium-browser-official/${ checksum=ff74592f83ed91c082f746c6b0a3acf384bad91f170bd24548971c17f43046d3 lib32disabled=yes -nodebug=yes nopie=yes # contains tools that are not PIE, enables PIE itself build_options="clang js_optimize vaapi" @@ -44,6 +43,10 @@ case "${XBPS_TARGET_MACHINE}" in i686) broken="what(): std::bad_alloc during linking" ;; esac +if [ "$XBPS_WORDSIZE" -eq 32 ]; then + nodebug=yes +fi + post_extract() { case "${XBPS_TARGET_MACHINE}" in *-musl) @@ -79,6 +82,10 @@ post_extract() { do_configure() { local system="" conf=() export -n CFLAGS CXXFLAGS LDFLAGS + if [ -n "$XBPS_DEBUG_PKGS" ] && [ -z $nodebug ]; then + export CFLAGS=-g + export CXXFLAGS=-g + fi if [ "$build_option_clang" ]; then export CC=clang