summaryrefslogtreecommitdiff
path: root/package/dansguardian/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/dansguardian/Makefile')
-rw-r--r--package/dansguardian/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/package/dansguardian/Makefile b/package/dansguardian/Makefile
index e262bbc..b24b416 100644
--- a/package/dansguardian/Makefile
+++ b/package/dansguardian/Makefile
@@ -20,12 +20,18 @@ include ${TOPDIR}/mk/package.mk
$(eval $(call PKG_template,DANSGUARDIAN,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+LIBRARIES:=-nodefaultlibs -luClibc++ -lgcc -lm
+ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
+LIBRARIES+=-lssp
+endif
+
ifeq ($(ADK_COMPILE_DANSGUARDIAN_WITH_UCLIBCXX),y)
CONFIGURE_ENV+= CXXFLAGS="-fno-threadsafe-statics -fno-builtin -nostdinc++ \
-I${STAGING_TARGET_DIR}/usr/include/uClibc++" \
- LIBS="-nodefaultlibs -luClibc++ -lgcc -lm"
+ LIBS="$(LIBRARIES)"
endif
+
CONFIGURE_ARGS+= --enable-orig-ip \
--with-proxyuser=proxy \
--with-proxygroup=proxy