Browse Source

Allow people to exclude regex code, since it is huge (27k)

Eric Andersen 22 years ago
parent
commit
dc5dac9013

+ 8 - 2
extra/Configs/Config.arm

@@ -74,7 +74,7 @@ DO_C99_MATH = false
 # Set it to `true' otherwise.
 # Affects *printf and *scanf functions.
 # Also omits strto(u)ll, and (u)lltostr from the library if `false'.
-HAS_LONG_LONG = true
+HAS_LONG_LONG = false
 
 # Set this to `false' if you don't have/need locale support; `true' otherwise.
 # Note: Currently only affects the ctype functions.  You must also generate
@@ -113,6 +113,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.
@@ -123,7 +129,7 @@ INCLUDE_RPC = false
 INCLUDE_IPV6 = false
 
 # If you want to compile the library as PIC code, turn this on.
-DOPIC = false
+DOPIC = true
 
 
 

+ 6 - 0
extra/Configs/Config.cross.arm.uclinux

@@ -109,6 +109,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.

+ 6 - 0
extra/Configs/Config.i386

@@ -109,6 +109,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.

+ 6 - 0
extra/Configs/Config.m68k

@@ -109,6 +109,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.

+ 6 - 0
extra/Configs/Config.m68k.coff

@@ -109,6 +109,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.

+ 6 - 0
extra/Configs/Config.mips

@@ -108,6 +108,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.

+ 6 - 0
extra/Configs/Config.mipsel

@@ -108,6 +108,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.

+ 6 - 0
extra/Configs/Config.powerpc

@@ -109,6 +109,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.

+ 6 - 0
extra/Configs/Config.sh

@@ -133,6 +133,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.

+ 6 - 0
extra/Configs/Config.v850e

@@ -114,6 +114,12 @@ UNIFIED_SYSCALL = false
 # Do not enable this unless your kernel provides large file support.
 DOLFS = false
 
+# Posix regular expression code is really big -- 27k all by itself.
+# If you don't use regular expressions, turn this off and save space.
+# Of course, if you only staticly link, leave this on, since it will
+# only be included in your apps if you use regular expressions. 
+INCLUDE_REGEX=true
+
 # If you want to include RPC support, enable this.  RPC is almost never used 
 # for anything except NFS support, so unless you plan to use NFS, leave this
 # disabled.  This is off by default.

+ 4 - 1
libc/misc/Makefile

@@ -26,7 +26,10 @@ include $(TOPDIR)Rules.mak
 
 
 DIRS = assert ctype dirent file fnmatch glob internals lsearch \
-       mntent syslog time utmp tsearch locale regex sysvipc statfs
+       mntent syslog time utmp tsearch locale sysvipc statfs
+ifeq ($(strip $(INCLUDE_REGEX)),true)
+DIRS += regex
+endif
 
 all: libc.a