nixcloud/ip2unix

build executable as position independent

etam opened this issue · 1 comments

etam commented

Possible solution: just change the instruction to use meson -Db_pie=true build.
Another possible solution: use something fancy in meson.build

As noted here #9 (comment) It's required to make dlopen work properly.

Ah, damn... thanks for noticing, the reason why this doesn't work since version 2.1.2 is because I accidentally dropped the -pie in 8e10ef2.

The reason why I didn't notice this myself is because on Nix(OS) we build with -pie (and -fPIC) by default.

I'll add a new test case with all the hardening flags disabled so next time I accidentally remove it, we'll notice early on.