Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions to build static binary #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,18 @@ Building _debug/inotify-info...
Linking _debug/inotify-info...
```

In restricted environments you may not have permission to build nor install packages.
In this case, you can build an static binary and copy it to the target host:

```
# sudo dnf install glibc-static libstdc++-static
# make LDFLAGS=-static
# file _release/inotify-info
_release/inotify-info: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), statically linked, BuildID[sha1]=b35cbaaa6118d277441e3b4b517be4d0e00a4105, for GNU/Linux 3.2.0, not stripped, too many notes (256)
^^^^^^^^^^^^^^^^^
```


## Install

The resulting executable will be at `_release/inotify-info`. You are free to
Expand Down