diff mbox

tstools: fix build (link) error

Message ID 1384208964-29099-1-git-send-email-tjlee@ambarella.com
State Superseded
Headers show

Commit Message

Tzu-Jung Lee Nov. 11, 2013, 10:29 p.m. UTC
Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com>
---
 ...x-a-build-error-linking-of-shared-library.patch | 23 ++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 package/tstools/tstools-003-build-fix-a-build-error-linking-of-shared-library.patch

Comments

Peter Korsgaard Nov. 12, 2013, 10:20 p.m. UTC | #1
>>>>> "Tzu-Jung" == Tzu-Jung Lee <roylee17@gmail.com> writes:

> Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com>
> ---
>  ...x-a-build-error-linking-of-shared-library.patch | 23 ++++++++++++++++++++++
>  1 file changed, 23 insertions(+)
>  create mode 100644 package/tstools/tstools-003-build-fix-a-build-error-linking-of-shared-library.patch

> diff --git a/package/tstools/tstools-003-build-fix-a-build-error-linking-of-shared-library.patch b/package/tstools/tstools-003-build-fix-a-build-error-linking-of-shared-library.patch
> new file mode 100644
> index 0000000..e87413f
> --- /dev/null
> +++ b/package/tstools/tstools-003-build-fix-a-build-error-linking-of-shared-library.patch
> @@ -0,0 +1,23 @@
> +From 1f83d1aa7f3abc75faeb31f169f1162e11168e16 Mon Sep 17 00:00:00 2001
> +From: Tzu-Jung Lee <tjlee@ambarella.com>
> +Date: Mon, 11 Nov 2013 14:16:11 -0800
> +Subject: [PATCH] build: fix a build error (linking of shared library)

It would be good to explain in more detail (and/or add a link to an
autobuild failure).

For this kind of issue we normally just pass LD="$(TARGET_CC)" to make
instead of patching the Makefile, so I've committed a fix doing that,
thanks.
diff mbox

Patch

diff --git a/package/tstools/tstools-003-build-fix-a-build-error-linking-of-shared-library.patch b/package/tstools/tstools-003-build-fix-a-build-error-linking-of-shared-library.patch
new file mode 100644
index 0000000..e87413f
--- /dev/null
+++ b/package/tstools/tstools-003-build-fix-a-build-error-linking-of-shared-library.patch
@@ -0,0 +1,23 @@ 
+From 1f83d1aa7f3abc75faeb31f169f1162e11168e16 Mon Sep 17 00:00:00 2001
+From: Tzu-Jung Lee <tjlee@ambarella.com>
+Date: Mon, 11 Nov 2013 14:16:11 -0800
+Subject: [PATCH] build: fix a build error (linking of shared library)
+
+Signed-off-by: Tzu-Jung Lee <tjlee@ambarella.com>
+
+diff --git a/Makefile b/Makefile
+index ad7f163..83ff416 100644
+--- a/Makefile
++++ b/Makefile
+@@ -203,7 +203,7 @@ $(STATIC_LIB): $(OBJS)
+ 	ar rc $(STATIC_LIB) $(OBJS)
+ 
+ $(SHARED_LIB): $(OBJS)
+-	$(LD) -shared -o $(SHARED_LIB) $(OBJS) -lc
++	$(CC) -shared -o $(SHARED_LIB) $(OBJS) -lc
+ endif
+ 
+ # Build all of the utilities with the static library, so that they can
+-- 
+1.8.4.3
+