glibc multilib fix

This commit is contained in:
aliriza committed 2022-11-04 08:49:24 +00:00
1 parent bc1b0168e1
commit cec79277ed
2 files changed
+13 -5

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ email='parduscix@yandex.ru'
maintainer='sulincix' maintainer='sulincix'
license=('GPLv3') license=('GPLv3')
source=("https://gitlab.com/sulix/devel/sources/base-files/-/archive/$version/base-files-$version.zip") source=("https://gitlab.com/sulix/devel/sources/base-files/-/archive/$version/base-files-$version.zip")
md5sums=('8c5ac1d616fa78db004c2e8fb419a27c') md5sums=('009efca6fc8897379ac844b786bfb585')
arch=(x86_64) arch=(x86_64)
if [[ -d "$name-$version" ]] ; then if [[ -d "$name-$version" ]] ; then
+12 -4
View File
@@ -26,7 +26,6 @@ export CXXFLAGS="-O3 ${debug:+-g} -s -mno-tls-direct-seg-refs -mtune=generic -DS
export CC=gcc export CC=gcc
export CXX=g++ export CXX=g++
cd "$name-$version" cd "$name-$version"
setup(){ setup(){
opts=( opts=(
@@ -64,7 +63,11 @@ setup(){
cd .. cd ..
} }
build(){ build(){
for bdir in glibc32-build glibc-build ; do bdirs=(glibc-build)
if use multilib ; then
bdirs+=(glibc32-build)
fi
for bdir in ${bdirs[@]} ; do
if [[ -d $bdir ]] ; then if [[ -d $bdir ]] ; then
cd $bdir cd $bdir
make -O -j`nproc --all` make -O -j`nproc --all`
@@ -77,8 +80,13 @@ package(){
# create symlink lib64 (gentoo compability) # create symlink lib64 (gentoo compability)
mkdir -p ${DESTDIR}/lib64 mkdir -p ${DESTDIR}/lib64
ln -s lib64 ${DESTDIR}/lib ln -s lib64 ${DESTDIR}/lib
ln -s lib32 ${DESTDIR}/libx32 bdirs=(glibc-build)
for bdir in glibc32-build glibc-build ; do if use multilib ; then
mkdir -p ${DESTDIR}/lib32
ln -s lib32 ${DESTDIR}/libx32
bdirs+=(glibc32-build)
fi
for bdir in ${bdirs[@]} ; do
if [[ -d $bdir ]] ; then if [[ -d $bdir ]] ; then
# install files # install files
cd $bdir cd $bdir