diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-09-27 17:11:48 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-09-27 17:11:48 +0000 |
commit | cc1cc2f7d40504afd2836adec23e8e884a066bab (patch) | |
tree | bf9924c469aa23805863a545534103bbb969bc02 /Makefile | |
parent | 18b51cad45f0ff540924870a47ff61a4e4e4e4df (diff) |
Check for existing libc.so ld script before trying to modify it
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) )" \ |