]> git.wh0rd.org - patches.git/blob - 1035_all_glibc-respect-build-programs.patch
initial import
[patches.git] / 1035_all_glibc-respect-build-programs.patch
1 2007-07-23 Mike Frysinger <vapier@gentoo.org>
2
3 * iconv/Makefile (install-others): Don't define if not build-programs.
4 * login/Makefile (install-others): Likewise.
5 * posix/Makefile (install-others): Likewise.
6
7 --- iconv/Makefile
8 +++ iconv/Makefile
9 @@ -56,8 +56,10 @@
10 iconvconfig.h
11
12 others = iconv_prog iconvconfig
13 -install-others = $(inst_bindir)/iconv
14 install-sbin = iconvconfig
15 +ifeq ($(build-programs),yes)
16 +install-others = $(inst_bindir)/iconv
17 +endif
18
19 CFLAGS-gconv_cache.c += -DGCONV_DIR='"$(gconvdir)"'
20 CFLAGS-gconv_conf.c = -DGCONV_PATH='"$(gconvdir)"'
21 --- login/Makefile
22 +++ login/Makefile
23 @@ -30,7 +30,9 @@
24 CFLAGS-grantpt.c = -DLIBEXECDIR='"$(libexecdir)"'
25
26 others = utmpdump pt_chown
27 +ifeq ($(build-programs),yes)
28 install-others = $(inst_libexecdir)/pt_chown
29 +endif
30
31 distribute := utmp-private.h utmp-equal.h pty-private.h
32
33 --- posix/Makefile
34 +++ posix/Makefile
35 @@ -98,7 +98,9 @@
36 endif
37 others := getconf
38 install-bin := getconf
39 +ifeq ($(build-programs),yes)
40 install-others := $(inst_libexecdir)/getconf
41 +endif
42
43 before-compile := testcases.h ptestcases.h
44