From patchwork Thu Jun 6 13:03:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giulio Benetti X-Patchwork-Id: 1111121 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.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=micronovasrl.com Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=micronovasrl.com header.i=@micronovasrl.com header.b="ID33YFpb"; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45KQng3J6zz9s3l for ; Thu, 6 Jun 2019 23:03:19 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 64C7B204EC; Thu, 6 Jun 2019 13:03:14 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YI6t56mcipz5; Thu, 6 Jun 2019 13:03:12 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 8F58C204D1; Thu, 6 Jun 2019 13:03:12 +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 D109D1BF287 for ; Thu, 6 Jun 2019 13:03:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id CE56187E9B for ; Thu, 6 Jun 2019 13:03:10 +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 SAks8v336WFg for ; Thu, 6 Jun 2019 13:03:08 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.micronovasrl.com (mail.micronovasrl.com [212.103.203.10]) by hemlock.osuosl.org (Postfix) with ESMTP id B47CF85B3C for ; Thu, 6 Jun 2019 13:03:07 +0000 (UTC) Received: from mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) by mail.micronovasrl.com (Postfix) with ESMTP id A3C10B01427 for ; Thu, 6 Jun 2019 15:03:05 +0200 (CEST) Authentication-Results: mail.micronovasrl.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=micronovasrl.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=micronovasrl.com; h=x-mailer:message-id:date:date:subject:subject:to:from:from; s=dkim; t=1559826185; x=1560690186; bh=BDVOYg6INfdSvYY4mAaXzJ2m iJ3aTt7DZbiaI5eKqi4=; b=ID33YFpbTySoINphjeNxJxmJwxPsIPo9aTwqbADC kiQ98Nw3pm6I4MiZNP5Fr4JgSFAjXf54At9KBfOtBV/TXZapxf6WMi95SK3QQ192 WTHYim/hyzBy6rKsBufnAg4T/0WZUG/pRUiC8e0VQSdo4iPV9jAkAwRrVBGcMG8N EOw= X-Virus-Scanned: Debian amavisd-new at mail.micronovasrl.com Received: from mail.micronovasrl.com ([127.0.0.1]) by mail.micronovasrl.com (mail.micronovasrl.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id dFx1ZCqofic9 for ; Thu, 6 Jun 2019 15:03:05 +0200 (CEST) Received: from ubuntu.localdomain (benettig-pc.dominio.micronovasrl.com [192.168.123.215]) by mail.micronovasrl.com (Postfix) with ESMTPSA id 12564B010AE; Thu, 6 Jun 2019 15:03:05 +0200 (CEST) From: Giulio Benetti To: buildroot@buildroot.org Date: Thu, 6 Jun 2019 15:03:03 +0200 Message-Id: <20190606130304.129551-1-giulio.benetti@micronovasrl.com> X-Mailer: git-send-email 2.17.1 Subject: [Buildroot] [PATCH 1/2] package/prboom: avoid using hardcoded optimization flags 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: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Package prboom builds using -O2 flag ignoring Buildroot settings, this is due to the fact that -O2 is appended at the end of CFLAGS. Remove -O2 from 'configure' file, this way CFLAGS will contain Buildroot CFLAGS. Signed-off-by: Giulio Benetti --- package/prboom/prboom.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/prboom/prboom.mk b/package/prboom/prboom.mk index d370ae3fa5..6d9b55e9f6 100644 --- a/package/prboom/prboom.mk +++ b/package/prboom/prboom.mk @@ -11,6 +11,13 @@ PRBOOM_DEPENDENCIES = sdl sdl_net sdl_mixer PRBOOM_LICENSE = GPL-2.0+ PRBOOM_LICENSE_FILES = COPYING +# Remove imposed -O2 CFLAG to use TARGET_CFLAGS +define PRBOOM_FIXUP_CONFIGURE + sed -i 's:-O2::g' $(@D)/configure +endef + +PRBOOM_PRE_CONFIGURE_HOOKS += PRBOOM_FIXUP_CONFIGURE + ifeq ($(BR2_PACKAGE_LIBPNG),y) PRBOOM_DEPENDENCIES += libpng endif