From a3d23d2c36f39b9c76d0842d6fb2785ac13ee55f Mon Sep 17 00:00:00 2001 From: Yi Zhao Date: Tue, 1 Nov 2016 17:23:03 +0800 Subject: tsocks: fix QA warning for GNU_HASH Add LDFLAGS variable to Makefile.in so that extra linker flags can be sent via this variable. Signed-off-by: Yi Zhao Signed-off-by: Martin Jansa Signed-off-by: Joe MacDonald (cherry picked from commit 80450e62add364bc871d7b45f6781131e8b88d4f) Signed-off-by: Armin Kuster --- .../tsocks/tsocks/makefile-add-ldflags.patch | 19 +++++++++++++++++++ .../recipes-protocols/tsocks/tsocks_1.8beta5.bb | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 meta-networking/recipes-protocols/tsocks/tsocks/makefile-add-ldflags.patch (limited to 'meta-networking') diff --git a/meta-networking/recipes-protocols/tsocks/tsocks/makefile-add-ldflags.patch b/meta-networking/recipes-protocols/tsocks/tsocks/makefile-add-ldflags.patch new file mode 100644 index 0000000000..21464188ca --- /dev/null +++ b/meta-networking/recipes-protocols/tsocks/tsocks/makefile-add-ldflags.patch @@ -0,0 +1,19 @@ +Add LDFLAGS variable to Makefile.in, make sure the extra linker flags can be passed. + +Upstream-Status: Pending + +Signed-off-by: Yi Zhao + +diff --git a/Makefile.in b/Makefile.in +index cad6706..0ed55c5 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -50,7 +50,7 @@ ${SAVE}: ${SAVE}.c + ${SHCC} ${CFLAGS} ${INCLUDES} -static -o ${SAVE} ${SAVE}.c + + ${SHLIB}: ${OBJS} ${COMMON}.o ${PARSER}.o +- ${SHCC} ${CFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS} ++ ${SHCC} ${CFLAGS} ${LDFLAGS} ${INCLUDES} -nostdlib -shared -o ${SHLIB} ${OBJS} ${COMMON}.o ${PARSER}.o ${DYNLIB_FLAGS} ${SPECIALLIBS} ${LIBS} + ln -sf ${SHLIB} ${LIB_NAME}.so + + %.so: %.c diff --git a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb index b3a9620c68..22287ce262 100644 --- a/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb +++ b/meta-networking/recipes-protocols/tsocks/tsocks_1.8beta5.bb @@ -9,7 +9,9 @@ SECTION = "net" LICENSE = "GPL-2.0" LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" -SRC_URI = "http://downloads.sourceforge.net/tsocks/tsocks-${PV}.tar.gz" +SRC_URI = "http://downloads.sourceforge.net/tsocks/tsocks-${PV}.tar.gz \ + file://makefile-add-ldflags.patch \ + " SRC_URI[md5sum] = "51caefd77e5d440d0bbd6443db4fc0f8" SRC_URI[sha256sum] = "849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347" -- cgit 1.2.3-korg