From patchwork Mon Sep 24 20:14:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 147379 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp1127728lji; Mon, 24 Sep 2018 13:15:04 -0700 (PDT) X-Google-Smtp-Source: ACcGV61pMhTL98WeyfWWgZf8i67YFtm47jEQSkpQe7P3/bftloP4A+vakD//8QyKWIEPqomQEyVb X-Received: by 2002:a63:d00b:: with SMTP id z11-v6mr320554pgf.317.1537820104179; Mon, 24 Sep 2018 13:15:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537820104; cv=none; d=google.com; s=arc-20160816; b=sSIcZe3gtRjvAm5HkT7Wal8htV2fAHk3OZPo+BcsJevOEF7f0UozP78Eq7vdu3jXWe 9j5ZQvV7PZD7GnAvT0zoY1BCu8XjFO6y39kxFyfZgK2wEeN7zDE5tzrtfh53LkQJ1qV2 qF4nFSjyflSU2FFiqapNcdCDXkmN9jTgaDOtSx6RPDqVFhOnFkBT356jmCTMZ5EK+mxe WItTDLvt2eeYu0Yakix0FVajxzYRSNAicJ2EVZmBE4QZYnH+JNAR3Vl/I2Wfc37OGCaq Eu7YQX3RYsvjS2BfnwOpMNWu369bXeUQzVMurtin2n+YwLkaSHqQpJbXK9DHApF8Hp1C BDtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=EA3l7+DVkmO3RNdLjaNGGWH7EwrlZfvV0J0Lq515K18=; b=Jdrw8qUMr1QpUY6FeAa5yoVMnxNBWBSh/om9+kWjqmiHYUaQ5CnushvX1nC/0MOGdl 1s+Cc0gPoTC6dUZWB3qFSATB56baCXPVVaIxQR6uv1sp2dUdoXoJq+25ir+HQIx+cwkN 1+tBua9xIjOk0SjdCL9yIJfiTvYQWBfH7hJyFq9Pu2Rz5W+7HX8iQW1QpdRBRWou7tUM +69oGOcg21bLKGw2ROFTJi4i0ERUgbGkz3qCuRoXKKwD/bPUOHyoFFBF7qdOsFLVRPEW w76n9bxIkbPEwhSSfSCiQlAceGCS5jxjc5dH1GyQlqNSox2cXS6CCuk136V4nM33sW+s DQow== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=EMyH6nyF; 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=QUARANTINE 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 o15-v6si264059pgf.253.2018.09.24.13.15.03; Mon, 24 Sep 2018 13:15:04 -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 header.s=20161025 header.b=EMyH6nyF; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: from layers.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 3912C7949C; Mon, 24 Sep 2018 20:14:59 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f194.google.com (mail-pf1-f194.google.com [209.85.210.194]) by mail.openembedded.org (Postfix) with ESMTP id AECD9793F3 for ; Mon, 24 Sep 2018 20:14:55 +0000 (UTC) Received: by mail-pf1-f194.google.com with SMTP id p12-v6so9565701pfh.2 for ; Mon, 24 Sep 2018 13:14:57 -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=4tCg1YA+l9KFGn2pEpTwz6AlrK5jgM9r6adGC6UELKk=; b=EMyH6nyFG1jaU1Ne7j+u424RM82b+r9D/3hFt0TLlf///hBpfrM0AGTSRRX+2SQujS vuDhJykNvLqvR37ZFhLNv6EHj/R6uNvcKrFln7+E5LWTcD2fbwmFtWkuCpkAyGEuvX7x xdCrsDuPHPm1uUXqjTwGda1CUciwA9A77ODWEj002beIcbFN7OdfvuAvo+qV0FQXR8gA V+DML0CHJpfLIympqrTIUx3qf/pQ859kStqiA2n0RiIh4Qo2K3T3k4SWwfvObMJvSWrl dByVu6da/rzuePJdECex9y4KIkcX14O47XcKVlLv9DkmSjslzVuQCeHavRxnQDUigdIU XIzg== 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=4tCg1YA+l9KFGn2pEpTwz6AlrK5jgM9r6adGC6UELKk=; b=ij1On7ifMA+9/fSWp8c0ZXczTljUJ4wjd5eiWRkVk32nB9slSol8e10HCRM+/e7vGQ DTjSKG/RMkJZJrjmfBAPUZ7Tx+gaPgjxIhqX//Zq3KauResGVGgCF0Eoy8442oIpNaVq o7aNS1GPXWaZV8gwXRFHL7KS4UqUn4Dd7cGbhanehYGyTUq9T9IuzYvDR05/lqjHRiZx WyF92azj982VGuO/fmQGCjYbuBipen7Imyin1+J596UUcjiFtCUAKFj1tmv9vCWnbhq3 M7AC3RgGoGF6KFzmuDF1PE53d+5TSFofFJlYtlj5YHKM7qVzuMVauwcxEQ5fw00P3OSC /iIA== X-Gm-Message-State: ABuFfohzTufJkaZmSHSHSu/bpRNMNV5cJRRfbJO3RE80b/JLE0FwRiUl KSwzq+1d5kq4rMOQ7+zVygtmAkAI X-Received: by 2002:a63:d309:: with SMTP id b9-v6mr331126pgg.163.1537820096315; Mon, 24 Sep 2018 13:14:56 -0700 (PDT) Received: from localhost.localdomain ([2601:646:877f:9499::b1b1]) by smtp.gmail.com with ESMTPSA id s195-v6sm176398pgs.76.2018.09.24.13.14.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 24 Sep 2018 13:14:55 -0700 (PDT) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Mon, 24 Sep 2018 13:14:46 -0700 Message-Id: <20180924201447.2360-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.19.0 MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 1/2] tsocks: Add -lssp_nonshared to LIBS explicitly on musl 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: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org tsocks uses -nostdlib while linking shared library, which is not ideal but instead of chasing that and assuming there is a reason for that, we add -lssp_noshared to linker command at the end so it can build when security flags are enabled Fixes tsocks.c:954: undefined reference to `__stack_chk_fail_local' Signed-off-by: Khem Raj --- meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.19.0 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb index b2757f6ddc..72913579af 100644 --- a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb +++ b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb @@ -18,11 +18,13 @@ SRC_URI[sha256sum] = "849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863 inherit autotools-brokensep +LIBS_append_libc-musl = " -lssp_nonshared" + S = "${WORKDIR}/tsocks-1.8" FILES_${PN} = "${libdir}/* ${bindir}/tsocks" FILES_${PN}-dev = "" INSANE_SKIP_${PN} = "dev-so" -EXTRA_OEMAKE = "SHCC='${CC} -fPIC ${LDFLAGS}'" +EXTRA_OEMAKE = "SHCC='${CC} -fPIC ${LDFLAGS}' LIBS='${LIBS}'"