summaryrefslogtreecommitdiffstats
path: root/userspace/Makefile
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-09 20:05:22 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 20:58:32 +0200
commit22aabeef3cb9344614cc9b58e9e97208df04e711 (patch)
treea6ad50c347395252015d0d648ab25cd69e2b09ba /userspace/Makefile
parentc8ccfedd9bfd53274800d39f58ed335db97caf1a (diff)
downloadcryptodev-linux-22aabeef3cb9344614cc9b58e9e97208df04e711.tar.gz
cryptodev-linux-22aabeef3cb9344614cc9b58e9e97208df04e711.tar.xz
cryptodev-linux-22aabeef3cb9344614cc9b58e9e97208df04e711.zip
Avoid unnecessary internal relocations
Use __attribute__((visibility("hidden"))) for __ncr_file_descriptor to take advantage of PIC addressing instead of going through the dynamic linker. Add an internal alias for ncr_global_init() for the same reason. Add an internal header file to consolidate the "extern" references in the process.
Diffstat (limited to 'userspace/Makefile')
-rw-r--r--userspace/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/userspace/Makefile b/userspace/Makefile
index 9431327..a2757a4 100644
--- a/userspace/Makefile
+++ b/userspace/Makefile
@@ -17,7 +17,7 @@ libcryptodev.so: ${libobj}
ln -sf libcryptodev.so.0.0 libcryptodev.so.0
ln -sf libcryptodev.so.0.0 libcryptodev.so
-$(libobj): linux/ncr.h
+$(libobj): linux/ncr.h ncrypto_internal.h
linux/ncr.h: ../ncr.h
mkdir -p linux