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

Create shared libraries and set install locations. #49

Closed
wants to merge 4 commits into from

Conversation

flihp
Copy link
Contributor

@flihp flihp commented Oct 10, 2015

This pull request resolves #37 and #38. To test it do the following:

$ ./bootstrap
$ ./configure --prefix=/usr
$ make -j$(($(nproc)*2)) 2>&1 | tee build.log
$ mkdir destdir && DESTDIR=$(pwd)/destdir make install

This will build the code which will produce the new libraries described in #38. It will then install everything into a subdirectory called 'destdir' in the source tree. This is how most distros build packages but it's useful here so you can see where everything will be installed. You can poke around in this directory to see the libraries landing in destdir/usr/lib and headers in destdir/usr/include.

Remove empty SYSAPI_INC variable.
List C files only.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
Should have been part of tpm2-software#23

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
…l stuff.

Install libraries to $(libdir). Install headers to subdirectories
under $(includedir).
Install resourcemgr to sbin.
Don't install test programs.
Update INSTALL with appropriate notes.
Also do some some cleanup in bootstrap and Makefile.am w/r to
variable names and general organization.

Resolves tpm2-software#38

Signed-off-by: Philip Tricca <flihp@twobit.us>
Allow user to select static / shared object. Default is both on most
systems with executables linked dynamically.

Resolves tpm2-software#37.

Signed-off-by: Philip Tricca <philip.b.tricca@intel.com>
@flihp flihp added this to the packaging milestone Oct 10, 2015
@flihp
Copy link
Contributor Author

flihp commented Oct 11, 2015

Nevermind. This doesn't take into account the pile of dependencies shared between the localtpm and tpmsockets TCTI and the resource manager. Separating the two TCTIs won't be possible till the dependencies on the resource manager are broken up, or we compile those dependencies into each library. I'm going back to the drawing board on this one.

@flihp flihp closed this Oct 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libtpm shared object
2 participants