diff options
| -rw-r--r-- | meta-networking/recipes-protocols/zeroconf/zeroconf/makefile-add-ldflags.patch | 19 | ||||
| -rw-r--r-- | meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/meta-networking/recipes-protocols/zeroconf/zeroconf/makefile-add-ldflags.patch b/meta-networking/recipes-protocols/zeroconf/zeroconf/makefile-add-ldflags.patch new file mode 100644 index 0000000000..c5a4414db8 --- /dev/null +++ b/meta-networking/recipes-protocols/zeroconf/zeroconf/makefile-add-ldflags.patch | |||
| @@ -0,0 +1,19 @@ | |||
| 1 | Add LDFLAGS variable to Makefile, make sure the extra linker flags can be passed. | ||
| 2 | |||
| 3 | Upstream-Status: Pending | ||
| 4 | |||
| 5 | Signed-off-by: Yi Zhao <yi.zhao@windriver.com> | ||
| 6 | |||
| 7 | diff --git a/Makefile b/Makefile | ||
| 8 | index 77f3364..c98083f 100644 | ||
| 9 | --- a/Makefile | ||
| 10 | +++ b/Makefile | ||
| 11 | @@ -18,7 +18,7 @@ clean: | ||
| 12 | |||
| 13 | zeroconf: zeroconf.o delay.o | ||
| 14 | $(Q)echo "Creating $@" | ||
| 15 | - $(Q)$(CC) $(CFLAGS) -o $@ $^ $(LIBS) | ||
| 16 | + $(Q)$(CC) $(CFLAGS) ${LDFLAGS} -o $@ $^ $(LIBS) | ||
| 17 | |||
| 18 | |||
| 19 | # Automatic dependency generation | ||
diff --git a/meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb b/meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb index 9307263c7b..13f9b9b9a3 100644 --- a/meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb +++ b/meta-networking/recipes-protocols/zeroconf/zeroconf_0.9.bb | |||
| @@ -18,6 +18,7 @@ PR = "r1" | |||
| 18 | 18 | ||
| 19 | SRC_URI = "http://www.progsoc.org/~wildfire/zeroconf/download/${BPN}-${PV}.tar.gz \ | 19 | SRC_URI = "http://www.progsoc.org/~wildfire/zeroconf/download/${BPN}-${PV}.tar.gz \ |
| 20 | file://compilefix.patch \ | 20 | file://compilefix.patch \ |
| 21 | file://makefile-add-ldflags.patch \ | ||
| 21 | file://zeroconf-default \ | 22 | file://zeroconf-default \ |
| 22 | file://debian-zeroconf" | 23 | file://debian-zeroconf" |
| 23 | 24 | ||
