board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / libaio / libaio.mk
blob5ebe1b7eeafe728be117244009f22b53a5dbc606
1 ################################################################################
3 # libaio
5 ################################################################################
7 LIBAIO_VERSION = 0.3.110
8 LIBAIO_SOURCE = libaio_$(LIBAIO_VERSION).orig.tar.gz
9 LIBAIO_SITE = http://snapshot.debian.org/archive/debian/20141023T043132Z/pool/main/liba/libaio
10 LIBAIO_INSTALL_STAGING = YES
11 LIBAIO_LICENSE = LGPLv2.1+
12 LIBAIO_LICENSE_FILES = COPYING
14 LIBAIO_CONFIGURE_OPTS = $(TARGET_CONFIGURE_OPTS)
16 ifeq ($(BR2_STATIC_LIBS),y)
17 LIBAIO_CONFIGURE_OPTS += ENABLE_SHARED=0
18 endif
20 # On PowerPC, a weird toolchain issue causes -Os builds to produce
21 # references to hidden symbols, so we're forcing -O2
22 ifeq ($(BR2_powerpc),y)
23 LIBAIO_CONFIGURE_OPTS += CFLAGS="$(subst -Os,-O2,$(TARGET_CFLAGS))"
24 endif
26 define LIBAIO_BUILD_CMDS
27 $(LIBAIO_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
28 endef
30 define LIBAIO_INSTALL_STAGING_CMDS
31 $(LIBAIO_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(STAGING_DIR) install
32 endef
34 define LIBAIO_INSTALL_TARGET_CMDS
35 $(LIBAIO_CONFIGURE_OPTS) $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
36 endef
38 $(eval $(generic-package))