summaryrefslogtreecommitdiffstats
path: root/meta/packages/gdb/files/sim-install.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gdb/files/sim-install.patch')
-rw-r--r--meta/packages/gdb/files/sim-install.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/meta/packages/gdb/files/sim-install.patch b/meta/packages/gdb/files/sim-install.patch
new file mode 100644
index 0000000000..3c88c4c059
--- /dev/null
+++ b/meta/packages/gdb/files/sim-install.patch
@@ -0,0 +1,34 @@
1--- gdb-6.1/sim/common/Makefile.in~ 2004-01-15 21:25:06.000000000 +0000
2+++ gdb-6.1/sim/common/Makefile.in 2004-07-22 17:07:46.237809032 +0100
3@@ -34,7 +34,7 @@
4
5 datadir = @datadir@
6 mandir = @mandir@
7-man1dir = $(mandir)/man1
8+man1dir = $(DESTDIR)$(mandir)/man1
9 infodir = @infodir@
10 includedir = @includedir@
11
12
13--- gdb-6.1/sim/common/Make-common.in~sim-install.patch 2003-09-08 18:24:59.000000000 +0100
14+++ gdb-6.1/sim/common/Make-common.in 2004-07-22 17:56:18.947423032 +0100
15@@ -581,14 +581,14 @@
16
17 install-common: installdirs
18 n=`echo run | sed '$(program_transform_name)'`; \
19- $(INSTALL_PROGRAM) run$(EXEEXT) $(bindir)/$$n$(EXEEXT)
20+ $(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
21 n=`echo libsim.a | sed s/libsim.a/lib$(target_alias)-sim.a/`; \
22- $(INSTALL_DATA) libsim.a $(libdir)/$$n ; \
23- ( cd $(libdir) ; $(RANLIB) $$n )
24+ $(INSTALL_DATA) libsim.a $(DESTDIR)$(libdir)/$$n ; \
25+ ( cd $(DESTDIR)$(libdir) ; $(RANLIB) $$n )
26
27 installdirs:
28- $(SHELL) $(srcdir)/../../mkinstalldirs $(bindir)
29- $(SHELL) $(srcdir)/../../mkinstalldirs $(libdir)
30+ $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir)
31+ $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir)
32
33 check:
34 cd ../testsuite && $(MAKE) check RUNTESTFLAGS="$(RUNTESTFLAGS)"