Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save telecran-telecrit/9efe81fe1f9c88b55083dd6c38a55ae4 to your computer and use it in GitHub Desktop.

Select an option

Save telecran-telecrit/9efe81fe1f9c88b55083dd6c38a55ae4 to your computer and use it in GitHub Desktop.
rxvt-unicode-static, urxvt static build
Full correct way is:
sudo apt install libptytty-dev libx11-dev libxcb1-dev libxau-dev libxdmcp-dev libev-dev libptytty-dev libxft-dev libfontconfig1-dev libperl-dev
cd /tmp
git clone https://github.com/exg/rxvt-unicode/
cd /tmp/rxvt-unicode/
git clone https://github.com/enki/libev
git clone https://github.com/yusiwen/libptytty
pushd libptytty
cmake -DBUILD_SHARED_LIBS=OFF .
make
sudo cp -a ./libptytty.a /usr/lib/x86_64-linux-gnu/
popd
touch libev/ev.c libev/ev_linuxaio.c libev/ev_select.c libev/ev_poll.c libev/ev_epoll.c libev/ev_port.c libev/ev_kqueue.c libev/ev_win32.c libev/ev_vars.h
./configure CC=c99 CXX=g++ CXXFLAGS="-g -O2 -std=c++11" CFLAGS="-O2 -fPIC -fno-pie" LDFLAGS="-static -no-pie" --with-x --enable-256-color --enable-xft --enable-rxvt-scroll --disable-swapscreen --enable-mousewheel --disable-perl --prefix=/usr
LDFLAGS="-static -all-static -no-pie" make -j1 LIBS="-lX11 -lxcb -lXau -lXdmcp -lptytty -lev"
file ./src/rxvt
sudo make install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment