aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraglitke <aglitke@aglitke.localdomain>2006-08-21 14:22:21 -0500
committeraglitke <aglitke@aglitke.localdomain>2006-08-21 14:22:21 -0500
commit40b26a7fbc402bc51c40b48e14470b30b9534236 (patch)
tree849dcf61d1ae05b867a90ceb107588a631d79b93
parent66212d35775b4f607e23df661ff3d503cfa21402 (diff)
downloadlibhugetlbfs-40b26a7fbc402bc51c40b48e14470b30b9534236.tar.gz
build: Add library version via version script
Add GNU versioning via a version script to libhugetlbfs. Since the library doesn't export any symbols for use by applications, mark everything local. Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
-rw-r--r--Makefile1
-rw-r--r--VERSION8
2 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 88d9775..a349892 100644
--- a/Makefile
+++ b/Makefile
@@ -8,6 +8,7 @@ INSTALL_OBJSCRIPT = ld.hugetlbfs
INSTALL = install
+LDFLAGS = --no-undefined-version --version-script=VERSION
CFLAGS = -O2 -Wall -fPIC -g
CPPFLAGS = -D__LIBHUGETLBFS__
diff --git a/VERSION b/VERSION
new file mode 100644
index 0000000..f952e13
--- /dev/null
+++ b/VERSION
@@ -0,0 +1,8 @@
+VERSION {
+
+VERS_1.0 {
+ local:
+ *;
+};
+
+}