diff options
Diffstat (limited to 'recipes-security/keynote/keynote-2.3/makefile-add-ldflags.patch')
-rw-r--r-- | recipes-security/keynote/keynote-2.3/makefile-add-ldflags.patch | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/recipes-security/keynote/keynote-2.3/makefile-add-ldflags.patch b/recipes-security/keynote/keynote-2.3/makefile-add-ldflags.patch new file mode 100644 index 0000000..80d87cf --- /dev/null +++ b/recipes-security/keynote/keynote-2.3/makefile-add-ldflags.patch | |||
@@ -0,0 +1,36 @@ | |||
1 | Add LDFLAGS variable to Makefile so that extra linker flags can be sent via this variable. | ||
2 | |||
3 | Upstream-Status: Pending | ||
4 | |||
5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
6 | |||
7 | diff --git a/Makefile.in b/Makefile.in | ||
8 | index b216648..42b4827 100644 | ||
9 | --- a/Makefile.in | ||
10 | +++ b/Makefile.in | ||
11 | @@ -35,6 +35,7 @@ MKDIR = @MKDIR@ | ||
12 | SED = @SED@ | ||
13 | ECHO = @ECHO@ | ||
14 | TR = @TR@ | ||
15 | +LDFLAGS = @LDFLAGS@ | ||
16 | |||
17 | TARFLAGS = -cvzf ${DISTFILE} | ||
18 | YACCFLAGS2 = -d -p kv -b z | ||
19 | @@ -83,7 +84,7 @@ $(TARGET): $(OBJS) | ||
20 | $(RANLIB) $(TARGET) | ||
21 | |||
22 | $(TARGET2): $(TARGET) $(OBJS2) | ||
23 | - $(CC) $(CFLAGS) -o $(TARGET2) $(OBJS2) $(LIBS) | ||
24 | + $(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET2) $(OBJS2) $(LIBS) | ||
25 | |||
26 | k.tab.c: keynote.y header.h keynote.h assertion.h config.h | ||
27 | $(YACC) $(YACCFLAGS) keynote.y | ||
28 | @@ -131,7 +132,7 @@ $(SSLCERT) $(SSLKEY): | ||
29 | -keyout $(SSLKEY) | ||
30 | |||
31 | test-sample: all $(OBJS3) | ||
32 | - $(CC) $(CFLAGS) -o $(TARGET3) $(OBJS3) $(LIBS) | ||
33 | + $(CC) $(CFLAGS) $(LDFLAGS) -o $(TARGET3) $(OBJS3) $(LIBS) | ||
34 | |||
35 | test-sig: all $(SSLCERT) $(SSLKEY) | ||
36 | $(SED) -e 's/--.*//' < $(SSLCERT) > $(SSLCERT).1 | ||