* Install proxy module at its own path which is not prefixed by 'lib'
* Since the proxy module is the same as the library, and actually
needs to be loaded as the same library in memory (due to resource
tracking per process), use a symlink for proxy.
* Add a variable to the pkg-config file which shows the path
to the proxy module. ie:
$ pkg-config --variable=proxy_module p11-kit-1
https://bugzilla.redhat.com/show_bug.cgi?id=725905
pkgconfig_DATA = p11-kit-1.pc
EXTRA_DIST = \
- p11-kit-1.pc.in
\ No newline at end of file
+ p11-kit-1.pc.in
+
+# Proxy module is actually same as library, so install a link
+install-exec-hook:
+ $(LN_S) libp11-kit.so $(DESTDIR)$(libdir)/p11-kit-proxy.so
\ No newline at end of file
p11_system_modules=@p11_system_modules@
p11_user_conf=@p11_user_conf@
p11_user_modules=@p11_user_modules@
+proxy_module=@libdir@/p11-kit-proxy.so
Name: p11-kit
Description: Library and proxy module for properly loading and sharing PKCS#11 modules.