diff options
Diffstat (limited to 'templates/glibc')
| -rwxr-xr-x | templates/glibc/template | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/templates/glibc/template b/templates/glibc/template new file mode 100755 index 0000000..9624ce2 --- /dev/null +++ b/templates/glibc/template @@ -0,0 +1,41 @@ +pkgname=glibc +version=2.43 +build_no=1 +upstream="${MIRROR_GNU_FTP}/glibc/glibc-${version}.tar.gz" + +function do_configure { + mkdir build + cd build + + ## Taken from LFS book + echo "rootsbindir=/usr/sbin" > configparms + + set BISON_PKGDATADIR="/usr/share/bison" + set M4=m4 + + conf_flags=( + --prefix=/usr + --host="${DISTRO_TC}" + --enable-shared + --enable-threads=posix + --disable-nls + --disable-nscd + --disable-werror + --enable-stack-protector=strong + libc_cv_slibdir=/usr/lib + ) + + ../configure "${conf_flags[@]}" +} + +function do_build { + cd build + export PATH="/usr/bin:${PATH}" + make -j$(nproc) +} + +function do_install { + cd build + export PATH="/usr/bin:${PATH}" + make DESTDIR=${DESTDIR} install +} |
