-
Notifications
You must be signed in to change notification settings - Fork 26
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
make shared libraries load from runtime ACT_HOME by relative search path #41
Conversation
…hs are no longer compiled in Added the ability to pass additional CFLAGS to configure to enable compile time loading and include of libraries from non standard locations
I realized that there is a bug that i have to track down as the shared libraries are not loaded with the specified runtime path |
… path first and compile time $ACT_HOME second
@rmanohar let me know what you think and if you would consider that change. It works now as intended, sadly custom runtime vars in RUNPATH are not allowed, updated the description. Also my build IC now tests the build version on centos 7, ubuntu 18 + 20, and debian stable + oldstable. I kept the compile time version of ACT_HOME in there as backup so that make runtest still work as it uses the not installed binaries by default. |
This looks reasonable. Is $ORIGIN a Linux-only feature? If so, we could put that in a test within the script for linux as the $baseos. |
I will do some more research what I could find out so far that $Origin is supported on all gnu ld runtime linkers, but its not part of the POSIX spec. i found references for linux:
solaris: for BSD there is support but i need to test if its automatic and works because the man pages talk about an option |
has a check for linux and solaris added |
Looks good. I will merge this shortly. |
What does this pull request improve:
Why do that change:
This changes where triggered by me having to build the act tool chain for a shared network install. In my case this install is mounted to both centos 7 servers and ubuntu 20.04LTS local machines. To avoid having different binaries and having to install dependencies on all local machines I decided to put the required external so libs also in ACT_HOME/lib.
The build scripts I put at https://github.com/bics-rug/act-toolchain-build , I could build+publish nightlys from the oss parts (if you think that's helpfull for others) that should run on most gnu/linux distributions >2013 out of the box, without installing dependencies (the CI is testing that). The CI is already building a subset of the tools for the start, more will come. I am not packaging them at the moment but that would be easy.
changes to the binaries look like:
binaries:
libraries:
before it was :