summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak15
1 files changed, 15 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index ec4978de9..4b9773d57 100644
--- a/Rules.mak
+++ b/Rules.mak
@@ -34,7 +34,9 @@
# make CROSS=mipsel-linux-
# will build uClibc for 'mipsel'.
+ifndef CROSS
CROSS=
+endif
CC= $(CROSS)gcc
AR= $(CROSS)ar
LD= $(CROSS)ld
@@ -224,3 +226,16 @@ LIBGCC_DIR:=$(dir $(LIBGCC))
# Very few people will need to change this value from the default...
TARGET_PREFIX = /
+########################################
+#
+# uClinux shared lib support
+#
+
+ifdef CONFIG_BINFMT_SHARED_FLAT
+ # For the shared version of this, we specify no stack and its library ID
+ FLTFLAGS += -s 0
+ LIBID=1
+ export LIBID FLTFLAGS
+ SHARED_TARGET = lib/libc
+endif
+