readpe icon indicating copy to clipboard operation
readpe copied to clipboard

Support static linking of libpe

Open rdoeffinger opened this issue 9 years ago • 3 comments

A one-off compile and run is rather painful currently: either you need to install, or you need to rename libpe.so to libpe.so.1 and set LD_LIBRARY_PATH. For quick one-off usage a way to compile and use a static libpe would be much more convenient.

rdoeffinger avatar Jan 04 '17 15:01 rdoeffinger

@merces @jweyrich do you guys have any plans on supporting static linking of libpe for the release v0.81?

boddumanohar avatar Aug 22 '17 14:08 boddumanohar

Any progress on this one? I manually edited my LD_LIBRARY_PATH and that was inefficient.

RKTP avatar Sep 18 '18 07:09 RKTP

I know this is old but as an update on this: Not with make. If somebody else implements this cleanly sure but while seeming trivial this would balloon the Makefiles even further. Maybe if we switch to CMake at some point as this is actually trivial with CMake.

I use LD_PRELOAD like LD_PRELOAD=lib/libpe/libpe.so src/build/readpe test.exe for testing.

Edit: I am looking into premake as that can generate portable make files.

GoGoOtaku avatar May 10 '23 18:05 GoGoOtaku