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

Support static linking of libpe #100

Open
rdoeffinger opened this issue Jan 4, 2017 · 3 comments
Open

Support static linking of libpe #100

rdoeffinger opened this issue Jan 4, 2017 · 3 comments
Assignees
Milestone

Comments

@rdoeffinger
Copy link

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.

@boddumanohar
Copy link

boddumanohar commented Aug 22, 2017

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

@RKTP
Copy link

RKTP commented Sep 18, 2018

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

@GoGoOtaku
Copy link
Collaborator

GoGoOtaku commented May 10, 2023

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 GoGoOtaku added this to the v1.0 milestone May 14, 2023
@GoGoOtaku GoGoOtaku self-assigned this May 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants