Skip to content

Instantly share code, notes, and snippets.

@sanderfoobar
Created February 23, 2019 06:03
Show Gist options
  • Save sanderfoobar/81d85441d1743aafbb364e9535e9eced to your computer and use it in GitHub Desktop.
Save sanderfoobar/81d85441d1743aafbb364e9535e9eced to your computer and use it in GitHub Desktop.
recompile .deb static
sudo apt-get build-dep
apt-get source [...]
cd [...]
DEB_CFLAGS_APPEND="-fPIC" DEP_CXXFLAGS_APPEND="-fPIC" DEB_CPPFLAGS_APPEND="-fPIC" dpkg-buildpackage -B -us -uc -j3 -rfakeroot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment