From patchwork Wed Jan 22 11:13:34 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Francois Perrad X-Patchwork-Id: 313208 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id 856282C00B1 for ; Wed, 22 Jan 2014 22:13:59 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 6B9E59333D; Wed, 22 Jan 2014 11:13:58 +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 Q6sib1K14cZT; Wed, 22 Jan 2014 11:13:57 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id DAE069331F; Wed, 22 Jan 2014 11:13:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 25BA31BF833 for ; Wed, 22 Jan 2014 11:13:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 14A2780C00 for ; Wed, 22 Jan 2014 11:13:55 +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 262uQXR5Zj9C for ; Wed, 22 Jan 2014 11:13:54 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-we0-f169.google.com (mail-we0-f169.google.com [74.125.82.169]) by whitealder.osuosl.org (Postfix) with ESMTPS id 0F05080AEA for ; Wed, 22 Jan 2014 11:13:53 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id u57so200997wes.28 for ; Wed, 22 Jan 2014 03:13:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=S8TV4PFAav9C121NUT9YZ0mLdpPjou7ehf4+qlanBy8=; b=XPlvv2fM/jMSiqA3I6Egbx7Mk5phdF1MIPnR4JDkrCtd1HmCc9ktGZj73szuUz3NV6 Khfyz4RzLugiZDAlQC9jZyOM3KJtOkZMvNtt5MxYOfcAnGFhX+jfyzCK8TZTWa4Q+Zl8 IYHFQJVOWzydb42wJN9qRfjwAAB/A+bI0P8M8A6/xSbiBqW2jyBtfGrmbp88kVT0u3/D 65ZzAxAFGY/NuZ/5B6Ri4E7qPe/kBpbQM0ff4dUuAsvL4rmgZ415KzxVvJxSBPHIGIcZ G8ZSUOmAUdAhwItNRjk6exkLyoXyXJzboiBb2PTG9sv5pfC3i0Xu1awSerPVt5j1ry/5 /ntQ== X-Received: by 10.180.149.175 with SMTP id ub15mr19356098wib.44.1390389232306; Wed, 22 Jan 2014 03:13:52 -0800 (PST) Received: from ubuntu.localdomain (94.166.87.79.rev.sfr.net. [79.87.166.94]) by mx.google.com with ESMTPSA id bj3sm14118536wjb.14.2014.01.22.03.13.50 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 22 Jan 2014 03:13:51 -0800 (PST) From: Francois Perrad To: buildroot@busybox.net Date: Wed, 22 Jan 2014 12:13:34 +0100 Message-Id: <1390389214-9768-1-git-send-email-francois.perrad@gadz.org> X-Mailer: git-send-email 1.7.9.5 Subject: [Buildroot] [PATCH] lua: fix compilation with Blackfin FLAT X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net the dlfcn interface is not available with flat memory model see http://autobuild.buildroot.net/results/b41/b4146bf821d59f694546f6e3a341394cc8fa43ce/ Signed-off-by: Francois Perrad --- package/lua/lua.mk | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/package/lua/lua.mk b/package/lua/lua.mk index 2c867f6..b263070 100644 --- a/package/lua/lua.mk +++ b/package/lua/lua.mk @@ -15,7 +15,6 @@ LUA_LICENSE = MIT LUA_LICENSE_FILES = COPYRIGHT LUA_CFLAGS = -Wall -fPIC -LUA_MYLIBS += -ldl ifeq ($(BR2_PACKAGE_LUA_5_2),y) LUA_CFLAGS += -DLUA_COMPAT_ALL @@ -24,17 +23,22 @@ LUA_CFLAGS += -D_FILE_OFFSET_BITS=32 endif endif +ifneq ($(BR2_BINFMT_FLAT),y) + LUA_CFLAGS += -DLUA_USE_DLOPEN + LUA_MYLIBS += -ldl +endif + ifeq ($(BR2_PACKAGE_LUA_INTERPRETER_READLINE),y) LUA_DEPENDENCIES = readline ncurses LUA_MYLIBS += -lreadline -lhistory -lncurses - LUA_CFLAGS += -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_READLINE + LUA_CFLAGS += -DLUA_USE_POSIX -DLUA_USE_READLINE else ifeq ($(BR2_PACKAGE_LUA_INTERPRETER_LINENOISE),y) LUA_DEPENDENCIES = linenoise LUA_MYLIBS += -llinenoise - LUA_CFLAGS += -DLUA_USE_POSIX -DLUA_USE_DLOPEN -DLUA_USE_LINENOISE + LUA_CFLAGS += -DLUA_USE_POSIX -DLUA_USE_LINENOISE else - LUA_CFLAGS += -DLUA_USE_POSIX -DLUA_USE_DLOPEN + LUA_CFLAGS += -DLUA_USE_POSIX endif endif