summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package/gcc/Makefile13
1 files changed, 13 insertions, 0 deletions
diff --git a/package/gcc/Makefile b/package/gcc/Makefile
index 20e99fff8..36aa0f94c 100644
--- a/package/gcc/Makefile
+++ b/package/gcc/Makefile
@@ -10,6 +10,19 @@ PKG_OPTS:= noremove
PKG_DEPENDS:= libgmp mpfr
PKG_BUILDDEP+= gmp mpfr
+ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
+PKG_DEPENDS:= uclibc-dev
+PKG_BUILDDEP+= uclibc
+endif
+ifeq ($(ADK_TARGET_LIB_EGLIBC),y)
+PKG_DEPENDS:= eglibc-dev
+PKG_BUILDDEP+= eglibc
+endif
+ifeq ($(ADK_TARGET_LIB_GLIBC),y)
+PKG_DEPENDS:= glibc-dev
+PKG_BUILDDEP+= glibc
+endif
+
PKG_HOST_DEPENDS:= !freebsd
include ${TOPDIR}/mk/package.mk