From patchwork Thu May 7 15:12:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 469720 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ozlabs.org (Postfix) with ESMTP id AC0DF14027F for ; Fri, 8 May 2015 01:37:54 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 9A54E25D62; Thu, 7 May 2015 15:37:52 +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 7fk6a9TOjiHZ; Thu, 7 May 2015 15:37:48 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 21D2230F94; Thu, 7 May 2015 15:37:48 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 7BA3B1C211A for ; Thu, 7 May 2015 15:37:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 75FB194E08 for ; Thu, 7 May 2015 15:37:47 +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 W98bfkw-ltoN for ; Thu, 7 May 2015 15:37:46 +0000 (UTC) X-Greylist: delayed 00:17:03 by SQLgrey-1.7.6 Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by hemlock.osuosl.org (Postfix) with ESMTPS id 1029094A3B for ; Thu, 7 May 2015 15:37:46 +0000 (UTC) Received: by wief7 with SMTP id f7so16838678wie.0 for ; Thu, 07 May 2015 08:37:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=V9iV4/tY6FrKdkJdSO4y1vmWC0PXUEgWPfHCC0kzQxQ=; b=Qq7+EHjx7ivfrNfEmuykkggAcr/hKPsy+/v8Wo5298uoHn8XNqCm1NbFQSy+j7Cqep tePL/kTPZXHjxg6zpIVSdG9uBucker0M5JnM48kDpzKmx2VeKBJ4872d+Dk571gcnReh 4IEW4DvfEpDKYdQx9NjpKeVK60pVofdHIWTvsTV9TwXawRLz+BZ487tc/3hZwYvz/Vm6 w2y10Q7UAf4DZOAL0ZPwY3bdJXY/Eg1uheCrt+9N5gUxmQB4wcLkAOE8e8VcyHeTQCHW DQSb52EwXJSz+34OlPkI8Jr9b2UDcgL+qN8pjmwP3catwbPqlWP1b/MwZNTTkflJyLtY Klkg== X-Gm-Message-State: ALoCoQlOlqTOD9f4E4XtTPx4kqKuWVLU10zxB/+CqWJYonpL120zCk6WHHd+aroNbL3ZRD9XsU7h X-Received: by 10.194.47.165 with SMTP id e5mr8313494wjn.128.1431011546304; Thu, 07 May 2015 08:12:26 -0700 (PDT) Received: from localhost (host86-133-97-51.range86-133.btcentralplus.com. [86.133.97.51]) by mx.google.com with ESMTPSA id dg8sm3915843wjc.9.2015.05.07.08.12.24 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 May 2015 08:12:25 -0700 (PDT) From: Andrew Burgess To: uclibc@uclibc.org Subject: [PATCH] test/silly: Extend include path. Date: Thu, 7 May 2015 16:12:02 +0100 Message-Id: <1431011522-28610-1-git-send-email-andrew.burgess@embecosm.com> X-Mailer: git-send-email 2.2.2 X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" When attempting to build uClibc under buildroot, including building the tests, the silly tests don't currently compile, a result of attempting to build using a compiler that does not yet have an installed version of uClibc available. The error is a missing header file, specifically atomic.h. Taking inspiration from the nptl tests, I have extended the EXTRA_CFLAGS variable to add the required include paths. The tests can now be built under buildroot. Signed-off-by: Andrew Burgess Acked-by: Vineet Gupta --- test/silly/Makefile.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/silly/Makefile.in b/test/silly/Makefile.in index 9bb4032..faaff9c 100644 --- a/test/silly/Makefile.in +++ b/test/silly/Makefile.in @@ -6,3 +6,7 @@ RET_tiny := 42 # missing internal headers, disable these GLIBC_TESTS_DISABLED := tst-atomic_glibc tst-atomic-long_glibc + +EXTRA_CFLAGS := -I$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH) \ + -I$(top_srcdir)libc/sysdeps/linux \ + -I$(top_builddir)include