gcc: preserve CXXFLAGS_FOR_TARGET
[buildroot-gz.git] / package / nbd / nbd.mk
blobd91c2d717e568b939b0ebe5050752afafe05f7c2
1 ################################################################################
3 # nbd
5 ################################################################################
7 NBD_VERSION = 3.13
8 NBD_SOURCE = nbd-$(NBD_VERSION).tar.xz
9 NBD_SITE = http://downloads.sourceforge.net/project/nbd/nbd/$(NBD_VERSION)
10 NBD_CONF_OPTS = --enable-lfs
11 NBD_DEPENDENCIES = libglib2
12 NBD_LICENSE = GPLv2
13 NBD_LICENSE_FILES = COPYING
15 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
16 # We have linux/falloc.h
17 # but uClibc lacks fallocate(2) which is a glibc-ism
18 NBD_CONF_ENV = ac_cv_header_linux_falloc_h=no
19 endif
21 ifneq ($(BR2_NBD_CLIENT),y)
22 NBD_TOREMOVE += nbd-client
23 endif
24 ifneq ($(BR2_NBD_SERVER),y)
25 NBD_TOREMOVE += nbd-server
26 endif
28 define NBD_CLEANUP_AFTER_INSTALL
29 rm -f $(addprefix $(TARGET_DIR)/usr/sbin/, $(NBD_TOREMOVE))
30 endef
32 NBD_POST_INSTALL_TARGET_HOOKS += NBD_CLEANUP_AFTER_INSTALL
34 $(eval $(autotools-package))