about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/mach/hurd/Makefile4
-rw-r--r--sysdeps/standalone/i386/force_cpu386/Makefile3
-rw-r--r--sysdeps/unix/sysv/linux/Makefile2
-rw-r--r--sysdeps/unix/sysv/linux/getcwd.c6
4 files changed, 8 insertions, 7 deletions
diff --git a/sysdeps/mach/hurd/Makefile b/sysdeps/mach/hurd/Makefile
index 9f1ce74eb1..454ac8f98c 100644
--- a/sysdeps/mach/hurd/Makefile
+++ b/sysdeps/mach/hurd/Makefile
@@ -106,8 +106,8 @@ libc-name = crt
 
 ifeq (,$(subdir))
 install-others += $(inst_libdir)/libc.a $(inst_libdir)/libc_p.a
-$(inst_libdir)/libc.a: $(hurd)/libc-ldscript; $(do-install)
-$(inst_libdir)/libc_p.a: $(hurd)/libc_p-ldscript; $(do-install)
+$(inst_libdir)/libc.a: $(hurd)/libc-ldscript $(+force); $(do-install)
+$(inst_libdir)/libc_p.a: $(hurd)/libc_p-ldscript $(+force); $(do-install)
 endif
 
 # Make sure these are used to build the libc.so shared object too.
diff --git a/sysdeps/standalone/i386/force_cpu386/Makefile b/sysdeps/standalone/i386/force_cpu386/Makefile
index a51ed7f429..3ed09643b2 100644
--- a/sysdeps/standalone/i386/force_cpu386/Makefile
+++ b/sysdeps/standalone/i386/force_cpu386/Makefile
@@ -20,6 +20,7 @@
 
 ifeq (bare,$(subdir))
 install-others += $(inst_libdir)/force_cpu386.ld
-$(inst_libdir)/force_cpu386.ld: $(sysdep_dir)/standalone/i386/target.ld
+$(inst_libdir)/force_cpu386.ld: $(sysdep_dir)/standalone/i386/target.ld \
+				$(+force)
 	$(do-install)
 endif
diff --git a/sysdeps/unix/sysv/linux/Makefile b/sysdeps/unix/sysv/linux/Makefile
index 9abab1e1ce..3d52210fb8 100644
--- a/sysdeps/unix/sysv/linux/Makefile
+++ b/sysdeps/unix/sysv/linux/Makefile
@@ -37,7 +37,7 @@ $(objpfx)syscall-%.h $(objpfx)syscall-%.d: ../sysdeps/unix/sysv/linux/sys/syscal
 	} > $(@:.d=.h).new
 	mv -f $(@:.d=.h).new $(@:.d=.h)
 
-$(inst_includedir)/bits/syscall.h: $(objpfx)syscall-list.h
+$(inst_includedir)/bits/syscall.h: $(objpfx)syscall-list.h $(+force)
 	$(make-target-directory)
 	if test -r $@ && cmp -s $< $@; \
         then echo 'bits/syscall.h unchanged'; \
diff --git a/sysdeps/unix/sysv/linux/getcwd.c b/sysdeps/unix/sysv/linux/getcwd.c
index b34960eac9..19a2c0f257 100644
--- a/sysdeps/unix/sysv/linux/getcwd.c
+++ b/sysdeps/unix/sysv/linux/getcwd.c
@@ -64,7 +64,7 @@ __getcwd (char *buf, size_t size)
 	  return NULL;
 	}
 
-      alloc_size = PATH_MAX + 1;
+      alloc_size = PATH_MAX;
     }
 
   if (buf != NULL)
@@ -88,9 +88,9 @@ __getcwd (char *buf, size_t size)
 	{
 	  if (buf == NULL)
 	    {
-	      buf = realloc (path, strlen (path) + 1);
+	      buf = realloc (path, (size_t) retval);
 	      if (buf == NULL)
-		/* `relloc' failed but we still have the original string.  */
+		/* `realloc' failed but we still have the original string.  */
 		buf = path;
 	    }
 	  return buf;