aboutsummaryrefslogtreecommitdiff
path: root/package/aiccu/aiccu.mk
diff options
context:
space:
mode:
authorGravatar Peter Korsgaard <peter@korsgaard.com>2013-10-01 21:18:52 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2013-10-01 21:19:42 +0200
commit3c84a8da8c524705dd167a0a5f8fc5f0e4a21422 (patch)
treeb89c50dc83d235aa625d6381d3ae6b0d7ece394d /package/aiccu/aiccu.mk
parentb9e7f642c3ca0def4453e91c0f739573a8694289 (diff)
downloadbuildroot-3c84a8da8c524705dd167a0a5f8fc5f0e4a21422.tar.gz
buildroot-3c84a8da8c524705dd167a0a5f8fc5f0e4a21422.tar.bz2
aiccu: really fix static linking
It seems like I forgot to amend before pushing :/ Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/aiccu/aiccu.mk')
-rw-r--r--package/aiccu/aiccu.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/package/aiccu/aiccu.mk b/package/aiccu/aiccu.mk
index 2c54644728..d698fa7a8a 100644
--- a/package/aiccu/aiccu.mk
+++ b/package/aiccu/aiccu.mk
@@ -11,10 +11,18 @@ AICCU_LICENSE = SixXS License, concise redistribution license
AICCU_LICENSE_FILES = doc/LICENSE
AICCU_DEPENDENCIES = gnutls
+AICCU_LFDLAGS = $(TARGET_LDFLAGS)
+
+# aiccu forgets to link with gnutls' dependencies breaking the build when
+# linking statically
+ifeq ($(BR2_PREFER_STATIC_LIB),y)
+AICCU_LDFLAGS += $(shell $(PKG_CONFIG_HOST_BINARY) --static --libs gnutls)
+endif
+
# dummy RPM_OPT_FLAGS to disable stripping
define AICCU_BUILD_CMDS
- $(TARGET_CONFIGURE_OPTS) $(MAKE) CC="$(TARGET_CC)" \
- RPM_OPT_FLAGS=1 -C $(@D)/unix-console all
+ $(TARGET_CONFIGURE_OPTS) LDFLAGS="$(AICCU_LDFLAGS)" $(MAKE) \
+ CC="$(TARGET_CC)" RPM_OPT_FLAGS=1 -C $(@D)/unix-console all
endef
define AICCU_INSTALL_TARGET_CMDS