mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-08-23 01:04:08 +08:00
stash
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
VERSION=1.0.2
|
||||
|
||||
# Install build requirements
|
||||
apt-get update && apt-get install -yq --no-install-recommends \
|
||||
libc6-dev \
|
||||
libssl-dev \
|
||||
zlib1g-dev
|
||||
|
||||
# Build capnproto
|
||||
cd /tmp
|
||||
wget https://capnproto.org/capnproto-c++-${VERSION}.tar.gz
|
||||
tar xvf capnproto-c++-${VERSION}.tar.gz
|
||||
cd capnproto-c++-${VERSION}
|
||||
CXXFLAGS="-fPIC -O2" ./configure
|
||||
|
||||
make -j$(nproc)
|
||||
|
||||
# remove "--fstrans=no" when checkinstall is fixed (still not fixed in 24.04)
|
||||
# https://bugs.launchpad.net/ubuntu/+source/checkinstall/+bug/78455
|
||||
checkinstall -yD --install=no --fstrans=no --pkgname=capnproto
|
||||
mv capnproto*.deb /tmp/capnproto.deb
|
||||
Reference in New Issue
Block a user