berkeley db4, for openldap server
[openwrt.git] / toolchain / gdb / patches / 680-debian_sim-destdir.patch
1 Fix some missing uses of DESTDIR in the sim/ directories. The Debian
2 packages use DESTDIR to build.
3
4 %patch
5 Index: gdb-6.3/sim/Makefile.in
6 ===================================================================
7 --- gdb-6.3.orig/sim/Makefile.in 2003-09-03 14:46:52.000000000 -0400
8 +++ gdb-6.3/sim/Makefile.in 2004-11-10 00:39:25.381315738 -0500
9 @@ -93,6 +93,7 @@ FLAGS_TO_PASS = \
10 "CC=$(CC)" \
11 "CC_FOR_BUILD=$(CC_FOR_BUILD)" \
12 "CFLAGS=$(CFLAGS)" \
13 + "DESTDIR=$(DESTDIR)" \
14 "RANLIB=$(RANLIB)" \
15 "MAKEINFO=$(MAKEINFO)" \
16 "INSTALL=$(INSTALL)" \
17 Index: gdb-6.3/sim/common/Make-common.in
18 ===================================================================
19 --- gdb-6.3.orig/sim/common/Make-common.in 2003-09-08 13:24:59.000000000 -0400
20 +++ gdb-6.3/sim/common/Make-common.in 2004-11-10 00:39:25.383315347 -0500
21 @@ -581,14 +581,14 @@ install: install-common $(SIM_EXTRA_INST
22
23 install-common: installdirs
24 n=`echo run | sed '$(program_transform_name)'`; \
25 - $(INSTALL_PROGRAM) run$(EXEEXT) $(bindir)/$$n$(EXEEXT)
26 + $(INSTALL_PROGRAM) run$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
27 n=`echo libsim.a | sed s/libsim.a/lib$(target_alias)-sim.a/`; \
28 - $(INSTALL_DATA) libsim.a $(libdir)/$$n ; \
29 - ( cd $(libdir) ; $(RANLIB) $$n )
30 + $(INSTALL_DATA) libsim.a $(DESTDIR)$(libdir)/$$n ; \
31 + ( cd $(DESTDIR)$(libdir) ; $(RANLIB) $$n )
32
33 installdirs:
34 - $(SHELL) $(srcdir)/../../mkinstalldirs $(bindir)
35 - $(SHELL) $(srcdir)/../../mkinstalldirs $(libdir)
36 + $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(bindir)
37 + $(SHELL) $(srcdir)/../../mkinstalldirs $(DESTDIR)$(libdir)
38
39 check:
40 cd ../testsuite && $(MAKE) check RUNTESTFLAGS="$(RUNTESTFLAGS)"
41 Index: gdb-6.3/sim/erc32/Makefile.in
42 ===================================================================
43 --- gdb-6.3.orig/sim/erc32/Makefile.in 2000-03-07 10:32:49.000000000 -0500
44 +++ gdb-6.3/sim/erc32/Makefile.in 2004-11-10 00:39:25.385314957 -0500
45 @@ -53,7 +53,7 @@ end.h: end
46 # Copy the files into directories where they will be run.
47 install-sis: installdirs
48 n=`echo sis | sed '$(program_transform_name)'`; \
49 - $(INSTALL_PROGRAM) sis$(EXEEXT) $(bindir)/$$n$(EXEEXT)
50 + $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT)
51
52 clean-sis:
53 rm -f sis end end.h
This page took 0.043769 seconds and 5 git commands to generate.