mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-23 17:33:34 +08:00
added lib32-libstdc++5
This commit is contained in:
parent
3e7018e74b
commit
7c0147bc9b
49
lib32-libstdc++5/PKGBUILD
Normal file
49
lib32-libstdc++5/PKGBUILD
Normal file
@ -0,0 +1,49 @@
|
||||
# Lib32 Packages for Chakra, part of chakra-project.org
|
||||
#
|
||||
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
||||
# maintainer (x86_64): Anke Boersma <abveritas[at]chakra-project[dot]org>
|
||||
|
||||
pkgname=lib32-libstdc++5
|
||||
pkgver=3.3.6
|
||||
pkgrel=1
|
||||
pkgdesc="Legacy GNU Standard C++ library version 3 (32 bit)"
|
||||
arch=(x86_64)
|
||||
url="http://gcc.gnu.org"
|
||||
license=('GPL' 'LGPL')
|
||||
depends=('lib32-gcc-libs')
|
||||
makedepends=('gcc-multilib' 'binutils-multilib')
|
||||
options=('!libtool' '!makeflags')
|
||||
source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-{core,g++}-${pkgver}.tar.bz2
|
||||
gcc-3.4.3-no_multilib_amd64.patch)
|
||||
md5sums=('18c52e6fb8966b7700665dca289d077f'
|
||||
'6b3d00b8d079805be1b895f7f6ce47a0'
|
||||
'b2a96584f4cee72362695ba44c911c40')
|
||||
|
||||
build(){
|
||||
export CFLAGS=$(echo $CFLAGS | sed 's|-mtune=generic||')
|
||||
export CXXFLAGS=$(echo $CXXFLAGS | sed 's|-mtune=generic||')
|
||||
cd ${srcdir}/gcc-${pkgver}
|
||||
|
||||
patch -Np0 -i ../gcc-3.4.3-no_multilib_amd64.patch
|
||||
# No fixincludes
|
||||
sed -i -e 's@\./fixinc\.sh@-c true@' gcc/Makefile.in
|
||||
|
||||
mkdir ../gcc-build
|
||||
cd ../gcc-build
|
||||
# We build the full multilib libstdc++5 here, no idea how to restrict
|
||||
# the build process to the 32 bit version only.
|
||||
../gcc-${pkgver}/configure --prefix=/usr --enable-shared \
|
||||
--enable-languages=c++ --enable-threads=posix --enable-__cxa_atexit \
|
||||
--enable-multilib
|
||||
make all-target-libstdc++-v3 BOOT_CFLAGS="${CFLAGS}" STAGE1_CFLAGS="-O"
|
||||
}
|
||||
|
||||
package() {
|
||||
cd ${srcdir}/gcc-build
|
||||
make DESTDIR=${pkgdir} install-target-libstdc++-v3
|
||||
|
||||
# Only install the lib32 files
|
||||
rm -rf ${pkgdir}/usr/{include,share,lib}
|
||||
rm -f ${pkgdir}/usr/lib32/*.a
|
||||
rm -f ${pkgdir}/usr/lib32/libstdc++.so
|
||||
}
|
11
lib32-libstdc++5/gcc-3.4.3-no_multilib_amd64.patch
Normal file
11
lib32-libstdc++5/gcc-3.4.3-no_multilib_amd64.patch
Normal file
@ -0,0 +1,11 @@
|
||||
--- gcc/config/i386/t-linux64.orig 2003-06-28 00:19:59.000000000 +0000
|
||||
+++ gcc/config/i386/t-linux64 2003-06-28 00:20:07.000000000 +0000
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
MULTILIB_OPTIONS = m64/m32
|
||||
MULTILIB_DIRNAMES = 64 32
|
||||
-MULTILIB_OSDIRNAMES = ../lib64 ../lib
|
||||
+MULTILIB_OSDIRNAMES = ../lib ../lib32
|
||||
|
||||
LIBGCC = stmp-multilib
|
||||
INSTALL_LIBGCC = install-multilib
|
Loading…
Reference in New Issue
Block a user