added my Recipes
This commit is contained in:
@@ -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 <yi.zhao@windriver.com>
|
||||
|
||||
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
|
||||
@@ -0,0 +1,31 @@
|
||||
SUMMARY = "Libraries and wrapper for using a SOCKS proxy"
|
||||
DESCRIPTION = "The role of tsocks is to allow non SOCKS aware \
|
||||
applications (e.g telnet, ssh, ftp etc) to use SOCKS without any \
|
||||
modification. It does this by intercepting the calls that applications \
|
||||
make to establish network connections and negotating them through a \
|
||||
SOCKS server as necessary."
|
||||
HOMEPAGE = "http://sourceforge.net/projects/tsocks/"
|
||||
SECTION = "net"
|
||||
LICENSE = "GPL-2.0-only"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
|
||||
|
||||
SRC_URI = "http://downloads.sourceforge.net/tsocks/tsocks-${PV}.tar.gz \
|
||||
file://makefile-add-ldflags.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "51caefd77e5d440d0bbd6443db4fc0f8"
|
||||
SRC_URI[sha256sum] = "849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347"
|
||||
|
||||
inherit autotools-brokensep
|
||||
|
||||
LIBS:append:libc-musl = " -lssp_nonshared"
|
||||
LIBS:append:libc-glibc = " -lc_nonshared"
|
||||
|
||||
S = "${WORKDIR}/tsocks-1.8"
|
||||
|
||||
FILES:${PN} = "${libdir}/* ${bindir}/tsocks"
|
||||
FILES:${PN}-dev = ""
|
||||
INSANE_SKIP:${PN} = "dev-so"
|
||||
|
||||
EXTRA_OEMAKE = "SHCC='${CC} -fPIC ${LDFLAGS}' LIBS='${LIBS}'"
|
||||
|
||||
Reference in New Issue
Block a user