From patchwork Mon Feb 16 16:12:17 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Olivert Riera X-Patchwork-Id: 440269 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 961761401DA for ; Tue, 17 Feb 2015 03:12:29 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F0A0D91980; Mon, 16 Feb 2015 16:12:28 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hEsJiiJM1fmT; Mon, 16 Feb 2015 16:12:27 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id BDDD99197C; Mon, 16 Feb 2015 16:12:27 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from silver.osuosl.org (silver.osuosl.org [140.211.166.136]) by ash.osuosl.org (Postfix) with ESMTP id E0D621C26F8 for ; Mon, 16 Feb 2015 16:12:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id DAA5332FAB for ; Mon, 16 Feb 2015 16:12:25 +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 vVJByyxbSypM for ; Mon, 16 Feb 2015 16:12:24 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mailapp01.imgtec.com (mailapp01.imgtec.com [195.59.15.196]) by silver.osuosl.org (Postfix) with ESMTP id C6D7131E2F for ; Mon, 16 Feb 2015 16:12:24 +0000 (UTC) Received: from KLMAIL01.kl.imgtec.org (unknown [192.168.5.35]) by Websense Email Security Gateway with ESMTPS id 9F3B126B5E765 for ; Mon, 16 Feb 2015 16:12:20 +0000 (GMT) Received: from LEMAIL01.le.imgtec.org (192.168.152.62) by KLMAIL01.kl.imgtec.org (192.168.5.35) with Microsoft SMTP Server (TLS) id 14.3.195.1; Mon, 16 Feb 2015 16:12:22 +0000 Received: from localhost.localdomain (192.168.154.104) by LEMAIL01.le.imgtec.org (192.168.152.62) with Microsoft SMTP Server (TLS) id 14.3.210.2; Mon, 16 Feb 2015 16:12:22 +0000 From: Vicente Olivert Riera To: Date: Mon, 16 Feb 2015 16:12:17 +0000 Message-ID: <1424103137-425-1-git-send-email-Vincent.Riera@imgtec.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Originating-IP: [192.168.154.104] Subject: [Buildroot] [PATCH] make: disable the 'load' operation for static builds X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Disable the 'load' operation for static builds since it needs dlopen and friends. Otherwise it will fail with an error message like this one: load.o: In function `load_file': load.c:(.text+0x2a8): undefined reference to `dlopen' load.c:(.text+0x2c4): undefined reference to `dlerror' load.c:(.text+0x308): undefined reference to `dlsym' load.c:(.text+0x33c): undefined reference to `dlopen' load.c:(.text+0x35c): undefined reference to `dlsym' load.c:(.text+0x380): undefined reference to `dlopen' load.c:(.text+0x39c): undefined reference to `dlopen' load.c:(.text+0x3a0): undefined reference to `dlerror' load.c:(.text+0x42c): undefined reference to `dlsym' load.c:(.text+0x470): undefined reference to `dlsym' load.c:(.text+0x48c): undefined reference to `dlerror' load.o: In function `unload_file': load.c:(.text+0x63c): undefined reference to `dlclose' collect2: error: ld returned 1 exit status Fixes: http://autobuild.buildroot.net/results/9e3/9e39039b6db79a46990cd9bdcb179289e38d9f31/ Signed-off-by: Vicente Olivert Riera --- package/make/make.mk | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/package/make/make.mk b/package/make/make.mk index 20469ba..d643fb0 100644 --- a/package/make/make.mk +++ b/package/make/make.mk @@ -11,4 +11,9 @@ MAKE_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext) MAKE_LICENSE = GPLv3+ MAKE_LICENSE_FILES = COPYING +# Disable the 'load' operation for static builds since it needs dlopen +ifeq ($(BR2_STATIC_LIBS),y) + MAKE_CONF_OPTS += --disable-load +endif + $(eval $(autotools-package))