Commit 6204c24f by Richard Stallman

(install-common-headers): Use $(assertdir).

(assertdir): New variable.

From-SVN: r2344
parent d60280fd
......@@ -143,6 +143,8 @@ libdir = $(exec_prefix)/lib
libsubdir = $(libdir)/gcc-lib/$(target)/$(version)
# Directory for header file assert.h.
includedir = $(prefix)/include
# assertdir is overridden in cross-make.
assertdir = $(includedir)
# Extension (if any) to put in installed man-page filename.
manext = .1
# Directory in which to put man pages.
......@@ -1489,12 +1491,12 @@ install-common-headers: install-dir $(USER_H) gvarargs.h gstdarg.h gstddef.h
done
# Put assert.h in /usr/local/include, so it won't override GNU libc's assert.h.
# Don't replace the assert.h already there if it is not from GCC.
if [ -f $(includedir)/assert.h ] && ! grep "__eprintf" $(includedir)/assert.h; \
if [ -f $(assertdir)/assert.h ] && ! grep "__eprintf" $(assertdir)/assert.h; \
then true; \
else \
rm -f $(includedir)/assert.h; \
$(INSTALL_DATA) $(srcdir)/assert.h $(includedir)/assert.h; \
chmod a-x $(includedir)/include/assert.h; \
rm -f $(assertdir)/assert.h; \
$(INSTALL_DATA) $(srcdir)/assert.h $(assertdir)/assert.h; \
chmod a-x $(assertdir)/include/assert.h; \
fi
-rm -f $(libsubdir)/include/varargs.h
$(INSTALL_DATA) $(srcdir)/gvarargs.h $(libsubdir)/include/varargs.h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment