summaryrefslogtreecommitdiff
path: root/package/libelf/libelf.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/libelf/libelf.mk')
-rw-r--r--package/libelf/libelf.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/package/libelf/libelf.mk b/package/libelf/libelf.mk
index 7ae02ede0..ca3608dfe 100644
--- a/package/libelf/libelf.mk
+++ b/package/libelf/libelf.mk
@@ -24,6 +24,8 @@ $(LIBELF_DIR)/.source: $(DL_DIR)/$(LIBELF_SOURCE)
$(LIBELF_DIR)/.configured: $(LIBELF_DIR)/.source
(cd $(LIBELF_DIR); \
$(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="$(TARGET_LDFLAGS)" \
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \