Patchwork tc: respect LDFLAGS for %.so targets

login
register
mail settings
Submitter Mike Frysinger
Date Dec. 26, 2009, 7:52 p.m.
Message ID <1261857156-9037-1-git-send-email-vapier@gentoo.org>
Download mbox | patch
Permalink /patch/41806/
State Accepted
Delegated to: stephen hemminger
Headers show

Comments

Mike Frysinger - Dec. 26, 2009, 7:52 p.m.
Since there aren't any targets that currently use this pattern rule, this
is more of a proactive fix.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 tc/Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
stephen hemminger - Jan. 21, 2010, 6:05 p.m.
On Sat, 26 Dec 2009 14:52:36 -0500
Mike Frysinger <vapier@gentoo.org> wrote:

> Since there aren't any targets that currently use this pattern rule, this
> is more of a proactive fix.
> 
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
>  tc/Makefile |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/tc/Makefile b/tc/Makefile
> index f3dd2b7..0b5d7d3 100644
> --- a/tc/Makefile
> +++ b/tc/Makefile
> @@ -87,7 +87,7 @@ YACC := bison
>  LEX := flex
>  
>  %.so: %.c
> -	$(CC) $(CFLAGS) -shared -fpic $< -o $@
> +	$(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic $< -o $@
>  
>  
>  all: libtc.a tc $(TCSO)

applied

Patch

diff --git a/tc/Makefile b/tc/Makefile
index f3dd2b7..0b5d7d3 100644
--- a/tc/Makefile
+++ b/tc/Makefile
@@ -87,7 +87,7 @@  YACC := bison
 LEX := flex
 
 %.so: %.c
-	$(CC) $(CFLAGS) -shared -fpic $< -o $@
+	$(CC) $(CFLAGS) $(LDFLAGS) -shared -fpic $< -o $@
 
 
 all: libtc.a tc $(TCSO)