KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
$ printf 'int main(){}' | gcc -static -x c - -o hello $ scp hello vi-server.org:./ hello 100% 565KB 565.2KB/s 00:00 $ ssh -t vi-server.org "./hello; uname -r" FATAL: kernel too old sh: line 1: 15378 Segmentation fault ./hello 2.6.18-274.... # can't easily upgrade the kernel Connection to vi-server.org closed. How to build static binary that will work on on old systems? I expect static binaries to work even on 2.4.
Tags (comma-separated)
Save Edits
Cancel