Comments (7)
@hainest, what do you think about include(GNUInstallDirs)
and then use the variables: CMAKE_INSTALL_BINDIR
, CMAKE_INSTALL_INCLUDEDIR
and CMAKE_INSTALL_LIBDIR
as defaults for the dyninst variables. These are advanced cached options and are supposed use pick lib or lib64 depending on the platform and would allow user definitions.
from dyninst.
Looking at the old code, it's not clear to me that DYNINST_INSTALL_LIBDIR
would have had any influence on the install paths. Previously, they were hard-coded in INSTALL_{LIB,INCLUDE}_DIR
and then extended to be absolute paths relative to CMAKE_INSTALL_PREFIX
. This has never been the correct method of setting installation paths in CMake, so it was removed.
The current DYNINST_INSTALL_{LIB,BIN,INCLUDE,CMAKE}DIR
are internal variables that cannot be set by users. At one point, I had thought it might be useful to let users set the installation structure, but ultimately decided against it as it would make the resulting CMake package non-portable. The downside is that all libraries are installed in 'lib' and not 'lib64', but both are generally in linker/loader default search paths. We've been testing on Fedora 37-39 with both the default /usr/lib and a custom CMAKE_INSTALL_PREFIX
/lib without any trouble.
If there is a need to have them in */lib64
, I could add a config variable for that.
from dyninst.
Hi, Tim, thanks for the response. Yeah I don't doubt that what you have there works (installing 64-bit binaries into /usr/lib). The problem is that as a distro packager, that's outside the guidelines used for cohesion of the whole system. I suppose the packaging scripts could move these files into /usr/lib64 after all your cmake stuff is finished. But it would be better if the package could be made to fit directly into distro filesystem standards.
from dyninst.
Similarly, installing dyninst headers right under /usr/include kinda works, but /usr/include/dyninst would let it cohabit with the many other system libraries better.
from dyninst.
@kupsch That works for me. Did you want to take this one?
from dyninst.
I'll take care of it.
Thanks.
from dyninst.
@fche let us know if the fix for this works for your use case.
from dyninst.
Related Issues (20)
- BPatch_funcCallExpr does not conform to ARMv8 ABI HOT 14
- aarch64 stackwalking needs work. HOT 1
- Segmentation fault on libc-2.27.so:i386
- Make Parser::getSyscallNumber architecture-agnostic and handle multiple syscall arguments
- Issues with Static Instruction Insertion using Dyninst HOT 4
- Difficulty Inserting Instructions Using Dyninst Toolkit: Seeking Unified Solution HOT 1
- GitHub Release for 13.0.0 HOT 3
- AMD GPU Instruction Decoder Failed to expand operand HOT 1
- Upgrading SelectiveTaint: Replacing dyninst9.3 with dyninst13.0 in Ubuntu 14.04 Environment HOT 13
- (Unintentional) dependency in C++ static constructor order; causes SIGFPE when source files are reordered HOT 1
- How to instrument a non-x86_64 binary with dyninst library built upon x86_64 ? HOT 2
- Substantial increase in build times with gcc-14. HOT 1
- Build failures with gcc-14 HOT 1
- strange runtime error: odd - couldn't find kept register 2 HOT 1
- Instruction Operation missing x86 FLAG read/write properties
- Just upgrde gcc version to 8.5.0, also do those soft link trick,but found issue"Dyninst requires gcc >= 6.0" HOT 1
- Segmentation fault when -O2 used to compile application. HOT 4
- Missing entries in DWARF line information lookup HOT 1
- Incorrect jump table detection HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dyninst.