# This is an unusual package, since it installs stuff outside of the GARstow # tree; it's intended for use by people who manage everything else on their # system with GARstow and want an easy way of upgrading libc too. # # The standard warning applies: it's *very* easy to break things by upgrading # libc. (But if this does break things, I'd like to know about it.) GARNAME = glibc GARVERSION = 2.7 CATEGORIES = sys MASTER_SITES = $(MASTER_GNU) MASTER_SUBDIR = glibc/ libidn_distname = glibc-libidn-$(GARVERSION) DISTFILES = \ $(DISTNAME).tar.bz2 \ $(libidn_distname).tar.bz2 SIGFILES = $(addsuffix .sig,$(DISTFILES)) LIBDEPS = sys/libselinux BUILDDEPS = devel/gcc3 devel/binutils text/texinfo text/gawk perl/perl sys/coreutils sys/sed WORKOBJ = $(WORKDIR)/build DESCRIPTION = The GNU libc implementation HOME_URL = http://www.gnu.org/software/libc/ CONFIGURE_SCRIPTS = $(WORKSRC)/configure fixinc BUILD_SCRIPTS = $(WORKOBJ)/Makefile TEST_SCRIPTS = $(WORKOBJ)/Makefile INSTALL_SCRIPTS = $(WORKOBJ)/Makefile locales CONFIGURE_ARGS = \ --prefix=/usr \ --with-headers=$(LINUX_DIR)/include \ --enable-kernel=2.6.0 \ --enable-add-ons \ CC=gcc-3 CPP=cpp-3 CXX=g++-3 BUILD_ARGS = INSTALL_ARGS = INSTALL_ENV = \ LANGUAGE=C LC_ALL=C include ../../linux/linux.mk # We must build with default compiler flags; glibc is very picky about what # gets inlined. unexport LD_LIBRARY_PATH CPPFLAGS CFLAGS CXXFLAGS LDFLAGS post-extract: @mv $(WORKDIR)/$(libidn_distname) $(WORKSRC)/libidn $(MAKECOOKIE) # Add the prefix's include directory to the include path used when building # nscd, etc. configure-fixinc: @sed -i 's,^\(sysincludes =.*\)$$,\1 -isystem $(prefix)/include,' $(WORKOBJ)/config.make $(MAKECOOKIE) install-locales: @cd $(WORKOBJ) && make localedata/install-locales localedef -i en_GB -f ISO-8859-15 en_GB.ISO8859-15 $(MAKECOOKIE)