mirror of
https://github.com/openwrt/packages.git
synced 2026-01-11 04:04:50 +00:00
Currently tinycdb doesn't use {C,CPP,LD}FLAGS. This commit adds
MAKE_FLAGS to address this.
Before:
make[3]: Entering directory '/home/sk/tmp/openwrt/build_dir/target-mips_24kc_musl/tinycdb-0.78'
ccache_cc -O -D_FILE_OFFSET_BITS=64 -c cdb_init.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -O -D_FILE_OFFSET_BITS=64 -c cdb_find.c
...
Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
#
|
||
# Copyright (C) 2014 OpenWrt.org
|
||
#
|
||
# This is free software, licensed under the GNU General Public License v2.
|
||
# See /LICENSE for more information.
|
||
#
|
||
|
||
include $(TOPDIR)/rules.mk
|
||
|
||
PKG_NAME:=tinycdb
|
||
PKG_RELEASE:=1
|
||
PKG_SOURCE_URL:=http://www.corpit.ru/mjt/tinycdb/
|
||
PKG_VERSION:=0.78
|
||
PKG_HASH:=50678f432d8ada8d69f728ec11c3140e151813a7847cf30a62d86f3a720ed63c
|
||
PKG_MAINTAINER:=Denis Shulyaka <Shulyaka@gmail.com>
|
||
PKG_LICENSE:=NLPL
|
||
|
||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||
|
||
include $(INCLUDE_DIR)/package.mk
|
||
|
||
# Pass CPPFLAGS in the CFLAGS as otherwise the build system will
|
||
# ignore them.
|
||
TARGET_CFLAGS+=$(TARGET_CPPFLAGS)
|
||
|
||
MAKE_FLAGS+= \
|
||
CFLAGS="$(TARGET_CFLAGS)" \
|
||
LDFLAGS="$(TARGET_LDFLAGS)"
|
||
|
||
define Package/tinycdb
|
||
SECTION:=libs
|
||
CATEGORY:=Libraries
|
||
TITLE:=a Constant DataBase
|
||
URL:=http://www.corpit.ru/mjt/tinycdb.html
|
||
endef
|
||
|
||
define Package/tinycdb/description
|
||
TinyCDB is a very fast and simple package for creating and reading constant data bases
|
||
endef
|
||
|
||
define Build/InstallDev
|
||
cd $(PKG_BUILD_DIR); $(MAKE) DESTDIR=$(1) prefix=/usr install
|
||
endef
|
||
|
||
|
||
|
||
$(eval $(call BuildPackage,tinycdb))
|