summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2016-02-09 14:57:28 -0800
committerchrome-bot <chrome-bot@chromium.org>2016-02-10 12:44:14 -0800
commit40018bb45ba8ab918f1c7c20f400046f8fad0be2 (patch)
tree8b76e05b3f03bfc28365ca80d05e3a0a0a629202
parentd5e598646d5b35a13fb12ec8908b995a83da372a (diff)
downloadchrome-ec-40018bb45ba8ab918f1c7c20f400046f8fad0be2.tar.gz
cr50: test: use gcc for linking
For some reason the default linker does not find libftdi1 anymore. Other Chrome OS packages linking to this library still build just fine, it turns out they are using the default gcc for linking. Let's do the same for building tpmtest library. BRANCH=none BUG=none TEST=the following sequence now works fine: cd test/tmp_test touch * make and the resulting library allows to successfully run TPM tests on the b1 board. Change-Id: I10fe51a4747a3527b500d3255d8347e6a689c345 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/327065 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
-rw-r--r--test/tpm_test/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/tpm_test/Makefile b/test/tpm_test/Makefile
index e68c0f1c76..3c53fd5caa 100644
--- a/test/tpm_test/Makefile
+++ b/test/tpm_test/Makefile
@@ -40,7 +40,7 @@ $(obj)/%.o: $(src)/%.c
$(obj)/_$(TARGET).so: $(OBJS) $(obj)/$(TARGET).py
@echo " LD $(notdir $@)"
$(Q)rm -f $@
- $(Q)ld -shared $(OBJS) -lftdi1 -o $@
+ $(Q)gcc -shared $(OBJS) -lftdi1 -o $@
$(obj)/%_wrap.c: $(src)/%.i
@echo " SWIG $(notdir $@)"