From cc1cc2f7d40504afd2836adec23e8e884a066bab Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 27 Sep 2005 17:11:48 +0000 Subject: Check for existing libc.so ld script before trying to modify it --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index db9f098b8..442649fda 100644 --- a/Makefile +++ b/Makefile @@ -242,14 +242,14 @@ ifeq ($(strip $(HAVE_SHARED)),y) $(PREFIX)$(DEVEL_PREFIX)lib/$$i; \ done ifeq ($(strip $(COMPAT_ATEXIT)),y) - if [ -f $(PREFIX)$(DEVEL_PREFIX)lib/libc.so ] ; then \ + if [ -f $(TOPDIR)lib/libc.so ] ; then \ $(RM) $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \ sed -e '/^GROUP/d' $(TOPDIR)lib/libc.so > $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \ echo "GROUP ( $(DEVEL_PREFIX)lib/$(NONSHARED_LIBNAME) $(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME) )" \ >> $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \ fi else - if [ -f $(PREFIX)$(DEVEL_PREFIX)lib/libc.so ] ; then \ + if [ -f $(TOPDIR)lib/libc.so ] ; then \ $(RM) $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \ sed -e '/^GROUP/d' $(TOPDIR)lib/libc.so > $(PREFIX)$(DEVEL_PREFIX)lib/libc.so; \ echo "GROUP ( $(RUNTIME_PREFIX)lib/$(SHARED_MAJORNAME) $(DEVEL_PREFIX)lib/$(NONSHARED_LIBNAME) )" \ -- cgit v1.2.3