From patchwork Sat Jun 3 04:58:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 101300 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp52462qgd; Fri, 2 Jun 2017 21:59:01 -0700 (PDT) X-Received: by 10.84.195.1 with SMTP id i1mr3425450pld.120.1496465941380; Fri, 02 Jun 2017 21:59:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496465941; cv=none; d=google.com; s=arc-20160816; b=eujI8GA4fuXWu5PYAOHAWl/oZk5jQ2e66iqYqbZ92Uv/B+7xrkaOAkWcNxpGOeRoYk njJJ3p+HXsm+gbyA1FWHhBbV/TX5O/o6VkYlMhON5tWQQOmPN5PfoFwmrjRbLtRkxQ99 HGfzO00rA7XX1ZXXZq7F1UUjt05ThCrP1ayc6FmNxtsafJtGNsYVd88tSCmGu7lQMXHT 8h0/AqNIjEbQdc8IAWZjJGrI6ky/60dLxF7E5DMz/mp5KuqRmimwrsRmxYlpFcgEL3rd b9jA3y9AQKFOdNog8Tw/lask3LZBIBC3gb9TFsZR3QOghHJDmerbcy868fo7ZL6AeG3p XcAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:message-id:date:to:from:dkim-signature :delivered-to:arc-authentication-results; bh=b9VEpfkuDdQdL+exYrYhir2USEDxfC1QMUpQ8ZkcbIk=; b=tz/J9BCkelp4wt81LwJmWEVqsNV5S1m2U86zP+huxQUCfomrdRQ5UCGfk4D5WPOTCW 5XISkCQBrejWNi+2CC7hsrDjb955ybb2n8f6QTWR0D3GFAisf53xuwQiBD54x4mXLzad 1ydC1oajh3eiUX0HkFDFN0HzmYjpyFyzTvHsyy5V+hFfhxy2KqMPZakDrc6oFV7Hzlaa P4znrG1xjCq8pWgrKIDJA55nRamJjH2S++9fRuYveyCra4Nn/vCSOn2Iq1xv5CCxC1GV V7+2YVVSQfwyCr4Zkn//kfemTHY+lUiUwJWMN2epszjqcCFzS+q6m5VoOzvzm1TVOYHl bQpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id d82si5590996pfl.148.2017.06.02.21.59.00; Fri, 02 Jun 2017 21:59:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: from review.yoctoproject.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id EBF3677EAC; Sat, 3 Jun 2017 04:58:45 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by mail.openembedded.org (Postfix) with ESMTP id EA45E606A8 for ; Sat, 3 Jun 2017 04:58:42 +0000 (UTC) Received: by mail-pf0-f194.google.com with SMTP id n23so14633443pfb.3 for ; Fri, 02 Jun 2017 21:58:44 -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; bh=KyWMd7P/WDhfuGAjHwz7d3ZefVg+cOC9Y163hTqYMOQ=; b=VaP/UmJ4yHBAM0FZD4yv7/LwfxnLi1FI48gJ1Yjo323IxrP7ZxO0myMlhukbfEQAjO tpTlmeBBNLURYdw2q5gjsg8pZrSdJXqZEKNqR8cypE6CQl7njwAM9+eAzmtoSYaMfMcG xu4Y9QFeXgXglPTwCK9qDNlzFyzepe9kUS90uNC3LSNNslHKjnUI/D8HyWZkEltbGOuZ kkThm1Y/Zky4y5fCy6J+yykmUMQAkkZ3mMGjW2baQagA5NRuMN3I6eG1IO8Ma6anhi8y FLUXa4/Ec0Y7moh+a/2fjX/jcJseRKSuK486lSGzj/A50PLs9EeOWHdVXF6O2EwH8TVa GTcQ== 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; bh=KyWMd7P/WDhfuGAjHwz7d3ZefVg+cOC9Y163hTqYMOQ=; b=jG1n7kaOnBzXP8JYIsiE/ehrKUYXDrfKMY7ALSksvJFS8uRebX2LDR36nsELiAJ4Mt K46m2GfWTY5gjMLtEhf4OmWwXs3OSnBI7nR7JGuxPm49UvCmSdAfoGChnC6+55AyHQiU Tx5S0L0Q8MvL9RxjKgEtyDBTI5o+QMZjF9hiomfg3teq8hGpZ0y+/PBxB4xoFP7umpn3 ZZFwW0xtVNPKc70W8B5qEu7Dqc3L9UwmVWcXuySAluYRQAiYKZtoKZgQhDRFMDlCH/87 7wbG0if7VmKxOKUqW9ITYcGIyC7Xz5Hvg7KP5NL90iSIkh0MUbNwSy6Y4UNFSeAM54AB qNjQ== X-Gm-Message-State: AODbwcAcKRBO/nYIg20KIeFHEtL07h/BoHLFjnaCIDRxYwEYC3bQkbf6 5opLg16cG7Qjc5Mu X-Received: by 10.101.85.196 with SMTP id k4mr10358312pgs.172.1496465923778; Fri, 02 Jun 2017 21:58:43 -0700 (PDT) Received: from localhost.localdomain ([2601:646:8882:b8c::cf4]) by smtp.gmail.com with ESMTPSA id o29sm40732836pgc.27.2017.06.02.21.58.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 02 Jun 2017 21:58:42 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Fri, 2 Jun 2017 21:58:30 -0700 Message-Id: <20170603045833.8120-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.13.0 Subject: [oe] [meta-multimedia][PATCH 1/4] caps: Fix buld with -pie X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj --- .../recipes-multimedia/caps/caps/append_ldflags.patch | 18 ++++++++++++++++++ meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb | 1 + 2 files changed, 19 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch -- 2.13.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch b/meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch new file mode 100644 index 000000000..3abd38189 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/caps/caps/append_ldflags.patch @@ -0,0 +1,18 @@ +Change the order of linker flags such that -shared is appearig after -pie/-fpie +this helps in building the package when secuiry flags are enabled + +-Khem + +Index: caps-0.9.24/Makefile +=================================================================== +--- caps-0.9.24.orig/Makefile ++++ caps-0.9.24/Makefile +@@ -14,7 +14,7 @@ STRIP = strip + -include defines.make + + CFLAGS += $(OPTS) $(_CFLAGS) +-LDFLAGS += $(_LDFLAGS) $(CFLAGS) ++LDFLAGS += $(CFLAGS) $(_LDFLAGS) + + PLUG = caps + diff --git a/meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb b/meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb index 90a28360c..d7887635e 100644 --- a/meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb +++ b/meta-multimedia/recipes-multimedia/caps/caps_0.9.24.bb @@ -6,6 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" SRC_URI = "http://quitte.de/dsp/${PN}_${PV}.tar.bz2 \ file://Avoid-ambiguity-in-div-invocation.patch \ file://0001-basic.h-Use-c99-supported-stdint-types.patch \ + file://append_ldflags.patch \ " SRC_URI[md5sum] = "c1d634038dcb54702306c0e30cb1c626"