summaryrefslogtreecommitdiff
path: root/repo
diff options
context:
space:
mode:
Diffstat (limited to 'repo')
-rw-r--r--repo/devel/clang.xibuild3
-rw-r--r--repo/devel/llvm.xibuild8
-rw-r--r--repo/devel/rustc.xibuild21
-rw-r--r--repo/system/binutils.xibuild35
4 files changed, 29 insertions, 38 deletions
diff --git a/repo/devel/clang.xibuild b/repo/devel/clang.xibuild
index c729c9a..8b9c9b0 100644
--- a/repo/devel/clang.xibuild
+++ b/repo/devel/clang.xibuild
@@ -1,6 +1,6 @@
#!/bin/sh
-MAKEDEPS="cmake llvm libxml2 ninja python3"
+MAKEDEPS="cmake llvm libxml2 ninja python3 python-markupsafe"
DEPS="curl gcc libssh2 openssl"
PKG_VER=13.0.1
@@ -27,7 +27,6 @@ build () {
python_version=$(python3 -V | sed 's/.*\([0-9]\{1,\}\.[0-9]\{1,\}\)\..*/\1/')
-
cmake .. -G Ninja -Wno-dev \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_C_FLAGS_RELEASE_INIT="$CFLAGS -O2" \
diff --git a/repo/devel/llvm.xibuild b/repo/devel/llvm.xibuild
index 82496a4..f1eaf13 100644
--- a/repo/devel/llvm.xibuild
+++ b/repo/devel/llvm.xibuild
@@ -35,6 +35,7 @@ build () {
-DLLVM_ENABLE_ZLIB=ON \
-DLLVM_HOST_TRIPLE="x86_64-linux-musl" \
-DLLVM_INCLUDE_EXAMPLES=OFF \
+ -DLLVM_INSTALL_UTILS=ON \
-DLLVM_LINK_LLVM_DYLIB=ON \
-DLLVM_APPEND_VC_REV=OFF \
-Wno-dev -G Ninja .. &&
@@ -50,11 +51,4 @@ package () {
cd build
python3 ../utils/lit/setup.py install --prefix=/usr --root=$PKG_DEST
-
- mkdir $PKG_DEST/usr/bin
- for path in bin/*; do
- name=${path##*/}
- ln -s ../lib/llvm/bin/$name $PKG_DEST/usr/bin/$name
- done
-
}
diff --git a/repo/devel/rustc.xibuild b/repo/devel/rustc.xibuild
index 9667aa3..bab5553 100644
--- a/repo/devel/rustc.xibuild
+++ b/repo/devel/rustc.xibuild
@@ -8,7 +8,14 @@ SOURCE=https://static.rust-lang.org/dist/rustc-$PKG_VER-src.tar.gz
DESC="Systems programming language focused on safety, speed and concurrency"
ADDITIONAL="
- https://git.alpinelinux.org/aports/plain/community/rust/link-musl-dynamically.patch
+ patches/rustc/0006-Prefer-libgcc_eh-over-libunwind-for-musl.patch
+ patches/rustc/0007-do-not-install-libunwind-source.patch
+ patches/rustc/install-template-shebang.patch
+ patches/rustc/link-musl-dynamically.patch
+ patches/rustc/musl-fix-linux_musl_base.patch
+ patches/rustc/need-rpath.patch
+ patches/rustc/need-ssp_nonshared.patch
+ patches/rustc/need-ssp_nonshared.patch
"
prepare () {
@@ -17,23 +24,13 @@ prepare () {
mkdir -p $PKG_DEST/opt/rustc-$PKG_VER &&
ln -sf rustc-$PKG_VER $PKG_DEST/opt/rustc
-
- #openssl_file=vendor/openssl-sys/build/main.rs
- #checksum_before=$(sha256sum $openssl_file | cut -d' ' -f1)
- #sed -i "240i (3, 4, _) => ('3', '4', 'x')," $openssl_file
- #checksum_after=$(sha256sum $openssl_file | cut -d' ' -f1)
- #echo "checksum before: $checksum_before"
- #echo "checksum after: $checksum_after"
-
- #sed -i "s/$checksum_before/$checksum_after/g" vendor/openssl-sys/.cargo-checksum.json
-
}
build () {
export RUSTFLAGS="$RUSTFLAGS -C link-arg=-lffi" &&
target=x86_64-unknown-linux-musl
build=x86_64-unknown-linux-musl
- ./configure \
+ CFLAGS="-fPIE" CXXFLAGS="-fPIE" ./configure \
--build="$build" \
--host="$target" \
--target="$target" \
diff --git a/repo/system/binutils.xibuild b/repo/system/binutils.xibuild
index b8f383e..03880d5 100644
--- a/repo/system/binutils.xibuild
+++ b/repo/system/binutils.xibuild
@@ -34,23 +34,24 @@ build () {
;;
esac
- ../configure --prefix=/usr \
- --enable-gold \
- --enable-ld=default \
- --enable-plugins \
- --enable-shared \
- --disable-werror \
- --with-system-zlib \
- --enable-relro \
- --enable-lto \
- --disable-nls \
- --enable-deterministic-archives \
- --enable-default-hash-style=gnu \
- --enable-threads \
- --disable-multilib \
- --with-mmap \
- --enable-64-bit-bfd \
- $EXTRA_CONFIG
+ ../configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --disable-multilib \
+ --enable-ld=default \
+ --enable-gold \
+ --enable-64-bit-bfd \
+ --enable-plugins \
+ --enable-relro \
+ --enable-deterministic-archives \
+ --enable-targets=x86_64-pep \
+ --enable-default-hash-style=gnu \
+ --with-pic \
+ --disable-werror \
+ --disable-nls \
+ --with-mmap \
+ --with-system-zlib
make tooldir=/usr
}