Skip to content

Comments

Add flag for forcing static compilation#220

Merged
ericcurtin merged 1 commit intoinotify-tools:masterfrom
nirhaike:feature/force-static-compilation
May 21, 2024
Merged

Add flag for forcing static compilation#220
ericcurtin merged 1 commit intoinotify-tools:masterfrom
nirhaike:feature/force-static-compilation

Conversation

@nirhaike
Copy link

This pull request introduces the --enable-all-static flag to force static compilation of the tools. Fixes #218 .

Usage example:

./autogen
./configure --prefix=/usr --host=aarch64-linux-gnu CXX=aarch64-linux-gnu-g++ --enable-all-static
make CXX=aarch64-linux-gnu-g++

As a sidenote, I'm not sure about the advantages for using -static-libtool-libs over -all-static, so if I'm not missing anything, it's also possible to override the behavior of --enable-static-binary instead of introducing a new flag.

@ericcurtin ericcurtin merged commit 210b019 into inotify-tools:master May 21, 2024
@ericcurtin
Copy link
Member

I examined this for no xz-utils style obfuscation, checks out :)

@nirhaike nirhaike deleted the feature/force-static-compilation branch May 21, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can I build inotify-tools as 'statically linked'?

2 participants