From patchwork Sat Apr 13 18:07:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Martin X-Patchwork-Id: 236383 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id A7F702C0092 for ; Sun, 14 Apr 2013 04:07:54 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:date:from:to:cc; q=dns; s=default; b=kar5ouzAok84vda8dHH247b3PrCSi116qmefo8MMjvk x7YeYWO3hp1r9NBsFb6sU2XW5nS4O9mwcGd93YV5KeBq6nI1IU0wWgDb+SPD5CHe AVXZTxe7MQTJWYhL0NfrbNreWsuAr4RgdWwakOKUOt1/FH6S7Kzmul47RSJz1uS0 = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:date:from:to:cc; s=default; bh=AnK22dHFiclkzmYccSg7/F2j/Tg=; b=ni9O0WzYSWRTmfnNg CNYYCRW6mj0EslWYn8AaFOt3Oq6VtPXyVgIcHFBTqbFZgbsDDPf4BMIlkB10B3tb +ckeDkcvA9ahmU8wzo+ZhXQyZ68+JcOeeHIiP63RdB+IJscma2d5Io96m30xjXlI xcFZwx/m06xuW3dJv0qwXDO8zQ= Received: (qmail 9921 invoked by alias); 13 Apr 2013 18:07:47 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 9912 invoked by uid 89); 13 Apr 2013 18:07:46 -0000 X-Spam-SWARE-Status: No, score=-4.2 required=5.0 tests=BAYES_00, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, TW_CX, TW_XX autolearn=ham version=3.3.1 Received: from mail-bk0-f43.google.com (HELO mail-bk0-f43.google.com) (209.85.214.43) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 13 Apr 2013 18:07:45 +0000 Received: by mail-bk0-f43.google.com with SMTP id jm2so1792687bkc.2 for ; Sat, 13 Apr 2013 11:07:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:content-transfer-encoding :subject:x-mercurial-node:message-id:user-agent:date:from:to:cc :x-gm-message-state; bh=EtYqt/0DuDIjBHBHl8PrwA7NBgfGaQux5F2/Pjg8KrQ=; b=NcG942dPiB891zEdSBEyAr/kzQQuZYaYNPyoOpc4QwbUAJVW31bGAkg4wuO0lGBtic ChWUoYAp8YnZ3dCIVooxotiAY3GhyozNqqr00HwRl865X4KNvrzal6A03EHUmdVFq0ba RQpDuetbVIf5JE9LngyOpTmsLhttkHcbnY7IyX4x73NkBR0qcjIeeE85q71R+Xg6S07l pQRTtBbXP5A8HtTURNwDDaVJ85BNOE+DBH/ATwLhZjDt0AS1C7KxOpDK7oRj10RrrY9g Qai9emmtMX6D1VU6dNBkHlK6uG5m808P+aW0y+6ahjafLP17NoWGglTaxpBSbC0k5cHm rb7w== X-Received: by 10.205.33.81 with SMTP id sn17mr5908120bkb.53.1365876463108; Sat, 13 Apr 2013 11:07:43 -0700 (PDT) Received: from smartin-de-2.aldebaran.lan (140-85-190-109.dsl.ovh.fr. [109.190.85.140]) by mx.google.com with ESMTPS id fy17sm5749158bkc.6.2013.04.13.11.07.41 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 13 Apr 2013 11:07:42 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH] complibs/ppl: only add -fpermissive flag to CXXFLAGS X-Mercurial-Node: bba2482a06a11415207e6a85c24b876cbbd463bf Message-Id: User-Agent: Mercurial-patchbomb/2.5.4 Date: Sat, 13 Apr 2013 20:07:37 +0200 From: Samuel Martin To: "Yann E. MORIN" Cc: crossgcc@sourceware.org X-Gm-Message-State: ALoCoQl9YtZWCTTDEimdoYpmkjeAztyEA8DMRIPDiI2SsKVPhivgmdmN02T17Yqrxs1SMHo11J0F # HG changeset patch # User Samuel Martin # Date 1365874896 -7200 # Node ID bba2482a06a11415207e6a85c24b876cbbd463bf # Parent 30de175d3ed3bf8dc1228bf0abcddc10596936a2 complibs/ppl: only add -fpermissive flag to CXXFLAGS -fpermissive is not a valid option to gcc. Adding it to the CFLAGS make the ppl checks fail with the following error: [ALL ] Making check in tests [ALL ] cc1: warnings being treated as errors [ERROR] cc1: error: command line option "-fpermissive" is valid for C++/ObjC++ but not for C [ALL ] cc1: warnings being treated as errors [ERROR] cc1: error: command line option "-fpermissive" is valid for C++/ObjC++ but not for C [ERROR] make[7]: *** [formatted_output.o] Error 1 Signed-off-by: "Samuel Martin" --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 30de175d3ed3 -r bba2482a06a1 scripts/build/companion_libs/120-ppl.sh --- a/scripts/build/companion_libs/120-ppl.sh Thu Mar 21 11:01:09 2013 +0100 +++ b/scripts/build/companion_libs/120-ppl.sh Sat Apr 13 19:41:36 2013 +0200 @@ -29,6 +29,7 @@ do_ppl_for_build() { local -a ppl_opts local ppl_cflags + local ppl_cxxflags case "${CT_TOOLCHAIN_TYPE}" in native|cross) return 0;; @@ -38,13 +39,15 @@ CT_mkdir_pushd "${CT_BUILD_DIR}/build-ppl-build-${CT_BUILD}" ppl_cflags="${CT_CFLAGS_FOR_BUILD}" + ppl_cxxflags="${CT_CFLAGS_FOR_BUILD}" if [ "${CT_PPL_NEEDS_FPERMISSIVE}" = "y" ]; then - ppl_cflags+=" -fpermissive" + ppl_cxxflags+=" -fpermissive" fi ppl_opts+=( "host=${CT_BUILD}" ) ppl_opts+=( "prefix=${CT_BUILDTOOLS_PREFIX_DIR}" ) ppl_opts+=( "cflags=${ppl_cflags}" ) + ppl_opts+=( "cxxflags=${ppl_cxxflags}" ) ppl_opts+=( "ldflags=${CT_LDFLAGS_FOR_BUILD}" ) do_ppl_backend "${ppl_opts[@]}" @@ -56,18 +59,21 @@ do_ppl_for_host() { local -a ppl_opts local ppl_cflags + local ppl_cxxflags CT_DoStep INFO "Installing PPL for host" CT_mkdir_pushd "${CT_BUILD_DIR}/build-ppl-host-${CT_HOST}" ppl_cflags="${CT_CFLAGS_FOR_HOST}" + ppl_cxxflags="${CT_CFLAGS_FOR_HOST}" if [ "${CT_PPL_NEEDS_FPERMISSIVE}" = "y" ]; then - ppl_cflags+=" -fpermissive" + ppl_cxxflags+=" -fpermissive" fi ppl_opts+=( "host=${CT_HOST}" ) ppl_opts+=( "prefix=${CT_HOST_COMPLIBS_DIR}" ) ppl_opts+=( "cflags=${ppl_cflags}" ) + ppl_opts+=( "cxxflags=${ppl_cxxflags}" ) ppl_opts+=( "ldflags=${CT_LDFLAGS_FOR_HOST}" ) do_ppl_backend "${ppl_opts[@]}" @@ -85,6 +91,7 @@ local host local prefix local cflags + local cxxflags local ldflags local arg @@ -96,7 +103,7 @@ CT_DoExecLog CFG \ CFLAGS="${cflags}" \ - CXXFLAGS="${cflags}" \ + CXXFLAGS="${cxxflags}" \ LDFLAGS="${ldflags}" \ "${CT_SRC_DIR}/ppl-${CT_PPL_VERSION}/configure" \ --build=${CT_BUILD} \