This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] pass DESTDIR to make calls


Hi,

this patch allows make install as user, DESTDIR is missing in a call
like that:

make install-target-libstdc++-v3 DESTDIR=/var/tmp/gcc-3.1.1-build




diff -u gcc-3.1.1-20020521/config-ml.in{~,} 
--- gcc-3.1.1-20020521/config-ml.in~    2001-10-24 13:11:19.000000000 +0200
+++ gcc-3.1.1-20020521/config-ml.in     2002-05-24 22:42:34.000000000 +0200
@@ -553,6 +553,7 @@
                                LIBCFLAGS="$(LIBCFLAGS) $${flags}" \
                                LIBCXXFLAGS="$(LIBCXXFLAGS) $${flags}" \
                                LDFLAGS="$(LDFLAGS) $${flags}" \
+                               DESTDIR="$(DESTDIR)" \
                                $(DO)); then \
                  true; \
                else \



Error looks like that:


make[6]: Entering directory `/usr/src/packages/BUILD/gcc-3.1.1-20020521/obj-powerpc64-suse-linux/powerpc64-suse-linux/sof
t-float/libstdc++-v3/include'
make[6]: Nothing to be done for `install-exec-am'.
/bin/sh ../../../../../libstdc++-v3/../mkinstalldirs /usr/include/g++
/bin/sh ../../../../../libstdc++-v3/../mkinstalldirs /usr/include/g++/./bits
for file in /usr/src/packages/BUILD/gcc-3.1.1-20020521/libstdc++-v3/include/bits/basic_ios.h ...
 /usr/src/packages/BUILD/gcc-3.1.1-20020521/libstdc++-v3/include/bits/valarray_meta.h; do \
  /usr/bin/install -c -m 644 ${file} /usr/include/g++/./bits; done
/usr/bin/install: cannot remove `/usr/include/g++/./bits/basic_ios.h': Permission denied


Gruss Olaf

-- 
 $ man clone

BUGS
       Main feature not yet implemented...


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]