]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
* Makerules (elfobjdir): Use $(objdir) if set, even in elf subdir.
authorRoland McGrath <roland@gnu.org>
Wed, 12 Jun 1996 01:34:32 +0000 (01:34 +0000)
committerRoland McGrath <roland@gnu.org>
Wed, 12 Jun 1996 01:34:32 +0000 (01:34 +0000)
* elf/Makefile (routines): Remove init-first.
* csu/Makefile (routines): New variable; put it here instead.

* config.make.in (CFLAGS): New variable.

* io/sys/stat.h (S_ISLNK, S_ISSOCK): Make conditional on __USE_BSD,
not __USE_GNU.
* string/string.h (strncasecmp): Likewise.

ChangeLog
Makerules
config.make.in
csu/Makefile
elf/Makefile
io/sys/stat.h
string/string.h

index 4e9f04134680d0e4c702f5407045c1f2a9936506..21c2c2df408cada2aa981b962c2b01d6bdf2c771 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,16 @@
 Tue Jun 11 15:09:15 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>
 
+       * Makerules (elfobjdir): Use $(objdir) if set, even in elf subdir.
+
+       * elf/Makefile (routines): Remove init-first.
+       * csu/Makefile (routines): New variable; put it here instead.
+
+       * config.make.in (CFLAGS): New variable.
+
+       * io/sys/stat.h (S_ISLNK, S_ISSOCK): Make conditional on __USE_BSD,
+       not __USE_GNU.
+       * string/string.h (strncasecmp): Likewise.
+
        * elf/Makefile (lib-noranlib): Move rule adding deps for ld.so et al
        to after `include ../Rules', so $(rtld-installed-name) is defined.
 
index ff6adcf9d227a2a41e79a7501ae5d3a6a2f1ad08..5320ff4a9b60880740885b5dcd270df6af601230 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -493,11 +493,7 @@ LDFLAGS-c.so = -nostdlib -nostartfiles
 # Give libc.so an entry point and make it directly runnable itself.
 LDFLAGS-c.so += -e __libc_print_version
 # Use our own special initializer and finalizer files for libc.so.
-ifeq (elf, $(subdir))
-elfobjdir := .
-else
-elfobjdir := $(firstword $(objdir) $(..)elf)
-endif
+elfobjdir := $(firstword $(objdir) $(patsubst ../$(subdir),.,$(..)elf))
 $(common-objpfx)libc.so: $(elfobjdir)/soinit.so \
                         $(common-objpfx)libc_pic.a \
                         $(elfobjdir)/sofini.so $(elfobjdir)/ld.so
index 644e5edde5f4b3a496b7609c80818dc176c57ac3..d880a6378f11071139aa225ca920275e8a4c7f02 100644 (file)
@@ -30,6 +30,7 @@ stdio = @stdio@
 
 # Build tools.
 CC = @CC@
+CFLAGS = @CFLAGS@
 AR = @AR@
 RANLIB = @RANLIB@
 AS = $(CC) -c
index fdeaee0ce068f622e68d08965ccf4a0e75381697..9254b7f2bec6e8ecda3ca203477ac028e701879f 100644 (file)
@@ -27,6 +27,7 @@
 
 subdir := csu
 
+routines = init-first
 csu-dummies = $(filter-out $(start-installed-name),crt1.o Mcrt1.o)
 extra-objs = start.o gmon-start.o \
             $(start-installed-name) g$(start-installed-name) \
index 59906a017b0a20484795261458f053712a653ff0..07ffbd878865493c303e91b0fce623d21f51a2be 100644 (file)
@@ -21,8 +21,7 @@
 subdir         := elf
 
 headers                = elf.h elfclass.h link.h dlfcn.h
-routines       = init-first $(dl-routines) \
-                 dl-open dl-close dl-symbol dl-support
+routines       = $(dl-routines) dl-open dl-close dl-symbol dl-support
 
 # The core dynamic linking functions are in libc for the static and
 # profiled libraries.
index 52fa944a35d70fda03ac258276f4e9c7518d26aa..2c23102d337a8b8352815742863d5462e2f89ea4 100644 (file)
@@ -60,7 +60,7 @@ __BEGIN_DECLS
 #define        S_ISFIFO(mode)  __S_ISTYPE((mode), __S_IFIFO)
 #endif
 
-#ifdef __USE_GNU
+#ifdef __USE_BSD
 #ifdef __S_IFLNK
 #define        S_ISLNK(mode)   __S_ISTYPE((mode), __S_IFLNK)
 #endif
index 4bd8483d16962e70b9e3f7c62e7eb5bc70598177..755c6310486e90d06aa4dbd88fe1f422587d532a 100644 (file)
@@ -184,16 +184,16 @@ extern int ffs __P ((int __i));
 extern int __strcasecmp __P ((__const char *__s1, __const char *__s2));
 extern int strcasecmp __P ((__const char *__s1, __const char *__s2));
 
+/* Compare no more than N chars of S1 and S2, ignoring case.  */
+extern int strncasecmp __P ((__const char *__s1, __const char *__s2,
+                            size_t __n));
+
 /* Return the next DELIM-delimited token from *STRINGP,
    terminating it with a '\0', and update *STRINGP to point past it.  */
 extern char *strsep __P ((char **__stringp, __const char *__delim));
 #endif
 
 #ifdef __USE_GNU
-/* Compare no more than N chars of S1 and S2, ignoring case.  */
-extern int strncasecmp __P ((__const char *__s1, __const char *__s2,
-                            size_t __n));
-
 /* Return a string describing the meaning of the signal number in SIG.  */
 extern char *strsignal __P ((int __sig));