From 48713e430d5e86d4996af27752e48bea7859c45f Mon Sep 17 00:00:00 2001 From: ANDY KENNEDY Date: Mon, 8 Sep 2014 21:43:45 +0000 Subject: [PATCH] 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 Acked-by: Thomas Petazzoni Signed-off-by: Thomas Petazzoni --- package/portmap/portmap.mk | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/package/portmap/portmap.mk b/package/portmap/portmap.mk index 82035553e..01895976a 100644 --- a/package/portmap/portmap.mk +++ b/package/portmap/portmap.mk @@ -17,8 +17,7 @@ PORTMAP_FLAGS += NO_FORK=1 endif define PORTMAP_BUILD_CMDS - CFLAGS="$(TARGET_CFLAGS)" \ - $(MAKE) CC="$(TARGET_CC)" -C $(@D) $(PORTMAP_FLAGS) + $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(PORTMAP_FLAGS) endef define PORTMAP_INSTALL_TARGET_CMDS