summaryrefslogtreecommitdiff
path: root/package/tntnet/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-08-22 13:08:42 +0200
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2012-08-22 13:08:42 +0200
commitb5ef0800a597e0c87e169139838db5339e8fc6e4 (patch)
treeb746dab4aceaec30107d393da004df2add846b99 /package/tntnet/Makefile
parent7954547fd1b1661c82cbacea2b5bfdd491ac46ab (diff)
update to latest upstream version
Diffstat (limited to 'package/tntnet/Makefile')
-rw-r--r--package/tntnet/Makefile19
1 files changed, 17 insertions, 2 deletions
diff --git a/package/tntnet/Makefile b/package/tntnet/Makefile
index 4875fb449..dc6e8596f 100644
--- a/package/tntnet/Makefile
+++ b/package/tntnet/Makefile
@@ -4,9 +4,9 @@
include ${TOPDIR}/rules.mk
PKG_NAME:= tntnet
-PKG_VERSION:= 2.0
+PKG_VERSION:= 2.1
PKG_RELEASE:= 1
-PKG_MD5SUM:= 8f7185eeed23e7ae6a9be314e2fc0d36
+PKG_MD5SUM:= a9c85aa6d624f7f88c48374f28730242
PKG_DESCR:= small C++ application server
PKG_SECTION:= www
PKG_DEPENDS:= cxxtools zlib libiconv libpthread
@@ -46,7 +46,22 @@ CONFIGURE_ARGS+= --without-epoll \
--without-sendfile
CONFIGURE_ENV+= CXXFLAGS='${TARGET_CXXFLAGS}' \
ac_cv_path_cxxtools_config=${STAGING_TARGET_DIR}/usr/bin
+
+ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
+TARGET_CXXFLAGS+= -fno-builtin -nostdinc++ \
+ -I${STAGING_TARGET_DIR}/usr/include/uClibc++ -Wl,-E
+TARGET_LDFLAGS+= -luClibc++ -lm -lc -ldl -nodefaultlibs -shared
+else
TARGET_LDFLAGS+= -ldl
+endif
+
+ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
+# add workaround because libtool tries to link libstdc++
+post-configure:
+ ${SED} 's#postdeps="-lstdc.*#postdeps="-lm"#' \
+ ${WRKBUILD}/libtool
+endif
+
tntnet-install:
${INSTALL_DIR} ${IDIR_TNTNET}/www