summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorDavid McCullough <davidm@snapgear.com>2003-02-17 13:03:21 +0000
committerDavid McCullough <davidm@snapgear.com>2003-02-17 13:03:21 +0000
commitb2eb218fc338067d292f7e26fd4a176f27fa036b (patch)
tree1e8eb76556a3eec90be9374bee9bab3f76338aa2 /Rules.mak
parent5433dd6660505ef694a1d8699c507da5a7c722e4 (diff)
updates to the uClinux-dist romfs and uClinux shared library targets.
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
+