#
#
#	  Name: glibc.mk
#		make include file for GLIBC for La Casita
#
#

#SC_VRM		=	glibc-2.1.3
#SC_VRM		=	glibc-2.2.5
#SC_VRM		=	glibc-2.2.3
#SC_VRM		=	glibc-2.2.3c
#SC_VRM		=	glibc-2.3.2c
SC_VRM		=	glibc-2.3.3c

#SC_URL		=	\
#	http://ftp.gnu.org/pub/gnu/glibc/glibc-2.1.3.tar.gz \
#	http://ftp.gnu.org/pub/gnu/glibc/glibc-crypt-2.1.tar.gz \
#	http://ftp.gnu.org/pub/gnu/glibc/glibc-linuxthreads-2.1.3.tar.gz
#SC_URL		=	\
#	http://ftp.gnu.org/pub/gnu/glibc/glibc-2.2.3.tar.gz \
#	http://ftp.gnu.org/pub/gnu/glibc/glibc-linuxthreads-2.2.3.tar.gz
SC_URL		=	\
	http://ftp.gnu.org/pub/gnu/glibc/glibc-2.3.3.tar.gz \
	http://ftp.gnu.org/pub/gnu/glibc/glibc-linuxthreads-2.3.3.tar.gz

#SC_FETCH	=	wget $(SC_URL) ; \
#			tar xzf glibc-2.2.3.tar.gz ; \
#			     rm glibc-2.2.3.tar.gz ; \
#			tar xzf glibc-linuxthreads-2.2.3.tar.gz ; \
#			     rm glibc-linuxthreads-2.2.3.tar.gz ; \
#		mv linuxthreads linuxthreads_db glibc-2.2.3/. ; \
#			tar czf glibc-2.2.3.tar.gz glibc-2.2.3/. ; \
#					     rm -r glibc-2.2.3

#SC_FETCH	=	wget $(SC_URL) ; \
#					  tar xzf glibc-2.2.3.tar.gz ; \
#			     tar xzf glibc-linuxthreads-2.2.3.tar.gz ; \
#		       mv linuxthreads linuxthreads_db glibc-2.2.3/. ; \
#					 mv glibc-2.2.3 glibc-2.2.3c ; \
#			  tar czf glibc-2.2.3c.tar.gz glibc-2.2.3c/. ; \
#						  rm -r glibc-2.2.3c

#SC_FETCH	=	wget $(SC_URL) ; \
#					  tar xzf glibc-2.3.2.tar.gz ; \
#			     tar xzf glibc-linuxthreads-2.3.2.tar.gz ; \
#		       mv linuxthreads linuxthreads_db glibc-2.3.2/. ; \
#					 mv glibc-2.3.2 glibc-2.3.2c ; \
#			  tar czf glibc-2.3.2c.tar.gz glibc-2.3.2c/. ; \
#						  rm -r glibc-2.3.2c

SC_FETCH	=	wget $(SC_URL) ; \
					  tar xzf glibc-2.3.3.tar.gz ; \
			     tar xzf glibc-linuxthreads-2.3.3.tar.gz ; \
		       mv linuxthreads linuxthreads_db glibc-2.3.3/. ; \
					 mv glibc-2.3.3 glibc-2.3.3c ; \
			  tar czf glibc-2.3.3c.tar.gz glibc-2.3.3c/. ; \
						  rm -r glibc-2.3.3c

#SC_SOURCE	=	
SC_BUILDD	=	$(SC_SOURCE)/_build

SC_CONFIG	=	../configure --prefix=/usr --disable-nls \
				--enable-add-ons=linuxthreads
#				--enable-add-ons=linuxthreads,crypt
#SC_BUILD	=	
#SC_INSTALL	=	
#SC_FIXUP	=	/sbin/ldconfig
SC_FIXUP	=	strip /sbin/sln

#
#    Note that `/usr/include/net' and `/usr/include/scsi' should *not* be
# symlinks into the kernel sources.  GNU libc provides its own versions
# of these files.
#
#    Linux expects some components of the libc installation to be in
# `/lib' and some in `/usr/lib'.  This is handled automatically if you
# configure glibc with `--prefix=/usr'.  If you set some other prefix or
# allow it to default to `/usr/local', then all the components are
# installed there.
#


# 2.3.1 http://freshmeat.net/projects/glibc/
# http://downloads.linuxfromscratch.org/glibc-2.3.1-root-perl.patch
# http://downloads.linuxfromscratch.org/glibc-2.3.1-libnss.patch
# ttp://freshmeat.net/projects/glibc/
#SC_VRM		=	glibc-2.3.2
