kumquat-buildroot/package/portmap/portmap.mk
ANDY KENNEDY 48713e430d portmap: fix static linking
Portmap builds and links, however, does not get built correctly when
BR2_PREFER_STATIC_LIB is selected.  There are no dynamic libraries in
rootfs.tar, however, portmap gets linked dynamically without regards to
the PREFER_STATIC_LIB tags.  LDFLAGS was not being passed into the build of
portmap.

Signed-off-by:  Andy Kennedy <andy.kennedy@adtran.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2014-09-21 22:07:02 +02:00

38 lines
1.1 KiB
Makefile

################################################################################
#
# portmap
#
################################################################################
PORTMAP_VERSION = 6.0
PORTMAP_SOURCE = portmap-$(PORTMAP_VERSION).tgz
PORTMAP_SITE = http://neil.brown.name/portmap
PORTMAP_LICENSE = BSD-4c (portmap.c) SunRPC License (portmap.c from_local.c)
PORTMAP_LICENSE_FILES = portmap.c from_local.c
PORTMAP_SBINS = portmap pmap_dump pmap_set
PORTMAP_FLAGS = NO_TCP_WRAPPER=1 NO_PIE=1 NO_PERROR=1
ifeq ($(BR2_USE_MMU),)
PORTMAP_FLAGS += NO_FORK=1
endif
define PORTMAP_BUILD_CMDS
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(PORTMAP_FLAGS)
endef
define PORTMAP_INSTALL_TARGET_CMDS
for sbin in $(PORTMAP_SBINS); do \
$(INSTALL) -D $(@D)/$$sbin $(TARGET_DIR)/sbin/$$sbin; \
done
$(INSTALL) -D $(@D)/portmap.man \
$(TARGET_DIR)/usr/share/man/man8/portmap.8
$(INSTALL) -D $(@D)/pmap_dump.8 \
$(TARGET_DIR)/usr/share/man/man8/pmap_dump.8
$(INSTALL) -D $(@D)/pmap_set.8 \
$(TARGET_DIR)/usr/share/man/man8/pmap_set.8
$(INSTALL) -m 0755 package/portmap/S13portmap \
$(TARGET_DIR)/etc/init.d
endef
$(eval $(generic-package))