From patchwork Sun May 26 19:18:14 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1105600 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="glLr4NWK"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45Bqdf6m99z9s3Z for ; Mon, 27 May 2019 05:18:30 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 3F94C867AC; Sun, 26 May 2019 19:18:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I1CQHGk1asZa; Sun, 26 May 2019 19:18:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 5B4AC8675F; Sun, 26 May 2019 19:18:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 6FC6F1BF402 for ; Sun, 26 May 2019 19:18:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6CAC787476 for ; Sun, 26 May 2019 19:18:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wsp0i8a50JOc for ; Sun, 26 May 2019 19:18:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f66.google.com (mail-wr1-f66.google.com [209.85.221.66]) by hemlock.osuosl.org (Postfix) with ESMTPS id 2EDC087463 for ; Sun, 26 May 2019 19:18:25 +0000 (UTC) Received: by mail-wr1-f66.google.com with SMTP id h1so613857wro.4 for ; Sun, 26 May 2019 12:18:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G1GF2bPxUPqXc5oZ+NLk6k61GWnW1w+8d1cj9ee5NU8=; b=glLr4NWKMwOpZZj70XSJcetKhbCdkGYvK+trw2Sxm93SUWwce8345eV+KxmTo46akz IoNYUqDtrdgepSthTED754hiflKDIhLh+jPMsQyzj65eLBSQruDDzsQiMSldDq66f98c SOAD000XfV/Pgd13E2WX9459dyACbDZvdsn2RgziACdedJce/n7YGOaFPn3IhFigtmd1 zDib55oyCvNxfI6E6XIYRI0u5EDIuFzaQDoxcjHimTXYZ8Q1nELRuatWwN/6Hqf+YLyV umycZVOfFd3JLgtpt8ZhGEfh5UO+B3DaqJagXXUY96PUwRGv1RMNfWadKebYlR8ldWYQ Sduw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=G1GF2bPxUPqXc5oZ+NLk6k61GWnW1w+8d1cj9ee5NU8=; b=UW4YWj7CtZ+WoqPA8PLD4QffmrN72+cXUjjvsuq7wyH86EjmXKrvuXmQNG60wfRAbh 93FWzeXqjyQtLci8NkRz57IyKY0GJSgZ8I4P3lBvxHgg3HSbmTMX/02FbfIy+1Cnk8sz L/xsBYnpk0eaeHGKYfPbu8Ro0g5aMdotbnUhtT9PgghZjal/BFy9ytgn8ai/SlV59e0I jLXnmGx/wvcXfiV/3BwE8xPwP4gbStPOXpYzclLbDxOQgrukNVus+HFkSHVlDCLXtMCy kixVSRxaqUsv59WMAQibS98IA5gIBBvrbEH5PkZ7hEweqPQtjxEk1jaGWloujan6Fvb4 ArsA== X-Gm-Message-State: APjAAAWEfNZ8ov/j0fPbnmYWohlWY5/o/YG0CKaFJRCkDwLjtKCUG7w0 SBQoar7YCh0AaP7IOujBa/Sg9jUuvQo= X-Google-Smtp-Source: APXvYqySESuDus8tqYpOrPyOvuqepR6U/AUE4Q1QAhN9lnmX7KzEA+cgrhC71PWnkb99QzMAFPlN4Q== X-Received: by 2002:a5d:6750:: with SMTP id l16mr22175976wrw.274.1558898303384; Sun, 26 May 2019 12:18:23 -0700 (PDT) Received: from kali.home (lfbn-ren-1-314-196.w2-10.abo.wanadoo.fr. [2.10.15.196]) by smtp.gmail.com with ESMTPSA id t17sm5885001wmj.7.2019.05.26.12.18.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 May 2019 12:18:22 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Sun, 26 May 2019 21:18:14 +0200 Message-Id: <20190526191814.3942-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/supertux: fix debug build on uclibc/musl X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Always set CMAKE_BUILD_TYPE to Release otherwise supertux will be built with -pg since: https://github.com/SuperTux/supertux/commit/afd5f1b33c110104a7f286d6d7854157919a0a52 This will result in the following build failure on uclibc or musl: [ 77%] Linking C executable sq_static CMakeFiles/sq_static.dir/sq.c.o: In function `quit': /home/buildroot/autobuild/instance-3/output/build/supertux-0.6.0/external/squirrel/sq/sq.c:42: undefined reference to `__gnu_mcount_nc' Fixes: - http://autobuild.buildroot.org/results/b0b2e25af198d01713d1e2bcf38c77ae8ffbd7de Signed-off-by: Fabrice Fontaine --- package/supertux/supertux.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package/supertux/supertux.mk b/package/supertux/supertux.mk index af25509da8..5842b17ba4 100644 --- a/package/supertux/supertux.mk +++ b/package/supertux/supertux.mk @@ -18,6 +18,7 @@ SUPERTUX_LICENSE_FILES = LICENSE.txt data/AUTHORS SUPERTUX_DEPENDENCIES = host-pkgconf boost freetype libcurl libgl libglew libglu \ libogg libpng libvorbis openal physfs sdl2 sdl2_image +# CMAKE_BUILD_TYPE=Release: disable profiling code (-pg) # ENABLE_BOOST_STATIC_LIBS=OFF: use boost shared libraries since supertux # depends on !BR2_STATIC_LIBS and boost provide only shared libraries with # BR2_SHARED_LIBS. @@ -28,6 +29,7 @@ SUPERTUX_DEPENDENCIES = host-pkgconf boost freetype libcurl libgl libglew libglu # in physfs.h (CHECK_SYMBOL_EXISTS) doesn't work. # ENABLE_OPENGLES2=OFF: Disable opengles2 for now. SUPERTUX_CONF_OPTS += \ + -DCMAKE_BUILD_TYPE=Release \ -DENABLE_BOOST_STATIC_LIBS=OFF \ -DBUILD_DOCUMENTATION=OFF \ -DENABLE_OPENGL=ON \