bug-glibc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

make install fails when build-programs=no


From: Duane Ellis
Subject: make install fails when build-programs=no
Date: Tue, 24 Apr 2001 08:40:56 -0400

With glibc-2.2.2, if you set 'build-programs=no' in configparams, the
'make install' step fails for the iconv and login directories

Reason: The install-others targets wants to install two programs that
are not built.

Solution, quite simple, just like it is done in other places in the
makefiles and/or Rules files, something like this is sufficent.

 ifeq ($(build-programs),yes)
 install-others = $(inst_bindir)/iconv
 endif

A patch file follows. 

--------------------------------------------------
diff -Naur glibc-2.2.2/iconv/Makefile glibc-2.2.2-cross/iconv/Makefile
--- glibc-2.2.2/iconv/Makefile  Thu Feb 15 22:08:25 2001
+++ glibc-2.2.2-cross/iconv/Makefile    Sat Apr 21 19:05:59 2001
@@ -51,7 +51,9 @@
                  iconv_charmap.c dummy-repertoire.c
 
 others         = iconv_prog
+ifeq ($(build-programs),yes)
 install-others = $(inst_bindir)/iconv
+endif
 
 CFLAGS-gconv_conf.c = -DGCONV_PATH='"$(gconvdir)"'
 
diff -Naur glibc-2.2.2/login/Makefile glibc-2.2.2-cross/login/Makefile
--- glibc-2.2.2/login/Makefile  Wed Jun 21 18:11:02 2000
+++ glibc-2.2.2-cross/login/Makefile    Sat Apr 21 19:05:47 2001
@@ -30,8 +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 pty-private.h
 
 subdir-dirs = programs

--------------------------------------------------

The following has nothing to do with the bug - it's just how
I came across this problem.

I discovered this because I'm trying to build a cross "Linux From
Scratch" setup. My host is i586, my target is Alpha AXP.

I came across a catch-22 situtaion while boot-strapping the system
build.

I must first build GCC minus "libgcc2" - so that i have the compiler
and linker in place.  Then I can build glibc - install headers like
'stdio.h' go back and build gcc with libgcc2 - then go back and build
glibc a 2nd time with out "build-programs=no"

So I can then go back and.... 

Well it's interesting and a hell of a challange.

-Duane.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]