summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-09-27 17:11:48 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-09-27 17:11:48 +0000
commitcc1cc2f7d40504afd2836adec23e8e884a066bab (patch)
treebf9924c469aa23805863a545534103bbb969bc02
parent18b51cad45f0ff540924870a47ff61a4e4e4e4df (diff)
Check for existing libc.so ld script before trying to modify it
-rw-r--r--Makefile4
1 files 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) )" \