This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
build-programs=no in glibc
- From: Andy Neebel <aneebel at bradley dot edu>
- To: libc-alpha at sources dot redhat dot com
- Date: Tue, 20 Apr 2004 21:09:55 -0500
- Subject: build-programs=no in glibc
I have a biarch system, and when I try to build the 32bit libs only by
adding build-programs=no to configparms, I get two errors during make
install. I don't know if I have fixed them correctly or not, but I have
mangaged to get the to go away in such a method that should still let
the progs be built if build-programs is not no. I don't know if this is
the right list or not, but here is my patch that I made to get around
this problem. I have no clue if the current behavior is right or not,
but it seems to me that the build shouldn't fail during make install.
Andy
Patch follows
diff -Naur glibc-2.3.4-20040408.orig/iconv/Makefile
glibc-2.3.4-20040408/iconv/Makefile
--- glibc-2.3.4-20040408.orig/iconv/Makefile 2004-04-20
19:34:32.000000000 -0500
+++ glibc-2.3.4-20040408/iconv/Makefile 2004-04-20 20:35:22.295721944
-0500
@@ -56,8 +56,10 @@
iconvconfig.h
others = iconv_prog iconvconfig
+ifeq ($(build-programs),yes)
install-others = $(inst_bindir)/iconv
install-sbin = iconvconfig
+endif
CFLAGS-gconv_cache.c += -DGCONV_DIR='"$(gconvdir)"'
CFLAGS-gconv_conf.c = -DGCONV_PATH='"$(gconvdir)"'
diff -Naur glibc-2.3.4-20040408.orig/login/Makefile
glibc-2.3.4-20040408/login/Makefile
--- glibc-2.3.4-20040408.orig/login/Makefile 2004-04-20
19:34:32.000000000 -0500
+++ glibc-2.3.4-20040408/login/Makefile 2004-04-20 20:35:10.230556128
-0500
@@ -30,7 +30,9 @@
CFLAGS-grantpt.c = -DLIBEXECDIR='"$(libexecdir)"'
others = utmpdump pt_chown
+ifeq ($(build-programs),yes)
install-others = $(inst_libexecdir)/pt_chown
+endif
distribute := utmp-private.h utmp-equal.h pty-private.h