about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-12 01:34:32 +0000
committerRoland McGrath <roland@gnu.org>1996-06-12 01:34:32 +0000
commit6e86a7c21b25f271304238a0cff0dd638343a5c2 (patch)
treec16d93ff60aa8304dac31faee111abaed3109e74
parenta89d30d44492de151143ba26ae9c62ea2b79efb8 (diff)
downloadglibc-6e86a7c21b25f271304238a0cff0dd638343a5c2.tar.gz
glibc-6e86a7c21b25f271304238a0cff0dd638343a5c2.tar.xz
glibc-6e86a7c21b25f271304238a0cff0dd638343a5c2.zip
* 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.
-rw-r--r--ChangeLog11
-rw-r--r--Makerules6
-rw-r--r--config.make.in1
-rw-r--r--csu/Makefile1
-rw-r--r--elf/Makefile3
-rw-r--r--io/sys/stat.h2
-rw-r--r--string/string.h8
7 files changed, 20 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 4e9f041346..21c2c2df40 100644
--- 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.
 
diff --git a/Makerules b/Makerules
index ff6adcf9d2..5320ff4a9b 100644
--- 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
diff --git a/config.make.in b/config.make.in
index 644e5edde5..d880a6378f 100644
--- a/config.make.in
+++ b/config.make.in
@@ -30,6 +30,7 @@ stdio = @stdio@
 
 # Build tools.
 CC = @CC@
+CFLAGS = @CFLAGS@
 AR = @AR@
 RANLIB = @RANLIB@
 AS = $(CC) -c
diff --git a/csu/Makefile b/csu/Makefile
index fdeaee0ce0..9254b7f2be 100644
--- a/csu/Makefile
+++ b/csu/Makefile
@@ -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) \
diff --git a/elf/Makefile b/elf/Makefile
index 59906a017b..07ffbd8788 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -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.
diff --git a/io/sys/stat.h b/io/sys/stat.h
index 52fa944a35..2c23102d33 100644
--- a/io/sys/stat.h
+++ b/io/sys/stat.h
@@ -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
diff --git a/string/string.h b/string/string.h
index 4bd8483d16..755c631048 100644
--- a/string/string.h
+++ b/string/string.h
@@ -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));