xref: /OK3568_Linux_fs/buildroot/package/pv/pv.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# pv
4#
5################################################################################
6
7PV_VERSION = 1.6.20
8PV_SOURCE = pv-$(PV_VERSION).tar.bz2
9PV_SITE = http://www.ivarch.com/programs/sources
10PV_LICENSE = Artistic-2.0
11PV_LICENSE_FILES = doc/COPYING
12PV_DEPENDENCIES = $(TARGET_NLS_DEPENDENCIES)
13
14# --relax linker option is enabled by default on sparc/sparc64
15# architectures, and it can't be used together with -r option, so
16# disable it.
17ifeq ($(BR2_sparc)$(BR2_sparc64),y)
18PV_LDFLAGS = "-Wl,--no-relax"
19endif
20
21# While 'pv' uses autoconf, it does not use automake for its
22# makefiles. It uses $(LD) $(LDFLAGS) to achieve partial linking, but
23# using 'ld' directly doesn't work well with some toolchain
24# configuration, as the ld default emulation may not necessarily be
25# the correct one. By passing the below values for LD and LDFLAGS, we
26# ensure that 'gcc' is used to do these partial linking steps.
27PV_MAKE_OPTS = \
28	LD="$(TARGET_CC)" \
29	LDFLAGS="-Wl,-r -nostdlib $(PV_LDFLAGS)"
30
31$(eval $(autotools-package))
32