summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-05-15 18:06:27 (GMT)
committer Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2010-05-20 20:34:30 (GMT)
commit56407a4efa4f0da90462e4eb71180b3c2c8bb874 (patch)
treecbafd93f487f102b8d960df281fd775a57436d15
parentd30649ada0e27b0c9f0fdff8f5d9ece18b077a87 (diff)
downloadbuildroot-56407a4efa4f0da90462e4eb71180b3c2c8bb874.tar.gz
buildroot-56407a4efa4f0da90462e4eb71180b3c2c8bb874.tar.bz2
vpnc: pass CFLAGS at link time
External toolchain builds absolutely require the --sysroot option to be passed at link time. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/vpnc/vpnc.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/vpnc/vpnc.mk b/package/vpnc/vpnc.mk
index 5d0f87a..c4f23fa 100644
--- a/package/vpnc/vpnc.mk
+++ b/package/vpnc/vpnc.mk
@@ -26,7 +26,7 @@ $(VPNC_BINARY): $(VPNC_DIR)/.unpacked
rm -f $@
$(MAKE) $(TARGET_CONFIGURE_OPTS) INCLUDE=$(STAGING_DIR)/usr/include \
CFLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS+=-lgcrypt LDFLAGS+=-lgpg-error \
+ LDFLAGS+=-lgcrypt LDFLAGS+=-lgpg-error LDFLAGS+="$(TARGET_CFLAGS)" \
CC="$(TARGET_CC)" -C $(VPNC_DIR)
$(VPNC_TARGET_BINARY): $(VPNC_BINARY)
@@ -38,7 +38,7 @@ $(VPNC_TARGET_BINARY): $(VPNC_BINARY)
MANDIR=/usr/share/man \
VERSION=$(VPNC_VERSION) \
INCLUDE=$(STAGING_DIR)/usr/include \
- LDFLAGS="-lgcrypt -lgpg-error" \
+ LDFLAGS="-lgcrypt -lgpg-error $(TARGET_CFLAGS)" \
-C $(VPNC_DIR) install
$(STRIPCMD) $(STRIP_STRIP_UNNEEDED) $(VPNC_TARGET_BINARY)