summaryrefslogtreecommitdiff
path: root/package/mrd6/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'package/mrd6/Makefile')
-rw-r--r--package/mrd6/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/package/mrd6/Makefile b/package/mrd6/Makefile
index 5833d1f..1638eaf 100644
--- a/package/mrd6/Makefile
+++ b/package/mrd6/Makefile
@@ -22,10 +22,15 @@ $(eval $(call PKG_template,MRD6,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_
CONFIG_STYLE:= manual
+LIBRARIES:=-nodefaultlibs -luClibc++
+ifeq ($(ADK_TOOLCHAIN_GCC_USE_SSP),y)
+LIBRARIES+=-lssp -lssp_nonshared
+endif
+
ifeq (${ADK_COMPILE_MRD6_WITH_UCLIBCXX},y)
-TCXXFLAGS+= -fno-builtin -nostdinc++ -nodefaultlibs \
+TCXXFLAGS+= -fno-builtin -nostdinc++ \
-I${STAGING_TARGET_DIR}/usr/include/uClibc++
-TLDFLAGS+= -nodefaultlibs -luClibc++ -shared
+TLDFLAGS+= -shared ${LIBRARIES}
endif
XAKE_FLAGS+= EXTRA_FLAGS="${TCFLAGS}"