From 001ad8358977d67c2c3f95675c7c77c7135a03b8 Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 26 Mar 2010 00:53:57 +0000 Subject: [PATCH] [packages] lsqlite3: fix compilation, set INCS & LIBS, pass UNAME to prevent it from being guessed from the host git-svn-id: svn://svn.openwrt.org/openwrt/packages@20435 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- lang/lsqlite3/Makefile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/lang/lsqlite3/Makefile b/lang/lsqlite3/Makefile index 6a4adcdf8..3a0ab5d34 100644 --- a/lang/lsqlite3/Makefile +++ b/lang/lsqlite3/Makefile @@ -1,5 +1,5 @@ # -# Copyright (C) 2009 OpenWrt.org +# Copyright (C) 2009-2010 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -39,13 +39,12 @@ TARGET_LDFLAGS += -llua define Build/Compile $(MAKE) -C $(PKG_BUILD_DIR) \ - SQLITE3INC="$(STAGING_DIR)/usr/include/" \ - SQLITE3LIB="$(STAGING_DIR)/usr/lib/" \ - LUAINC="$(TARGET_CPPFLAGS)" \ - LUALIB="$(TARGET_LDFLAGS)" \ - LIBS="-shared $(TARGET_LDFLAGS)" \ - CC="$(TARGET_CC) $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)" \ - LD="$(TARGET_CROSS)ld -shared" + CC="$(TARGET_CC)" \ + CFLAGS="$(TARGET_CFLAGS)" \ + INCS="$(TARGET_CPPFLAGS)" \ + LIBS="$(TARGET_LDFLAGS)" \ + SHFLAGS="-shared" \ + UNAME="Linux" endef define Package/lsqlite3/install