summaryrefslogtreecommitdiffstats
path: root/package/lockdev/0001-Makefile-install-static-library-and-headers-separate.patch
diff options
context:
space:
mode:
authorRomain Naour <romain.naour@openwide.fr>2015-01-07 00:06:03 +0100
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-01-07 21:53:52 +0100
commit559ca96b77caf04ab517c8454e3a026f6ec92565 (patch)
treed7187fdcf8ebcf8a9c42f3b60492b99b16666245 /package/lockdev/0001-Makefile-install-static-library-and-headers-separate.patch
parent129496891df6e564fce57ceefed4148a2de0848d (diff)
downloadbuildroot-559ca96b77caf04ab517c8454e3a026f6ec92565.tar.gz
buildroot-559ca96b77caf04ab517c8454e3a026f6ec92565.zip
package/lockdev: handle static/shared only build
Add a patch to install headers and static library separately. Signed-off-by: Romain Naour <romain.naour@openwide.fr> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/lockdev/0001-Makefile-install-static-library-and-headers-separate.patch')
-rw-r--r--package/lockdev/0001-Makefile-install-static-library-and-headers-separate.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/package/lockdev/0001-Makefile-install-static-library-and-headers-separate.patch b/package/lockdev/0001-Makefile-install-static-library-and-headers-separate.patch
new file mode 100644
index 0000000000..d5a498a19e
--- /dev/null
+++ b/package/lockdev/0001-Makefile-install-static-library-and-headers-separate.patch
@@ -0,0 +1,44 @@
+From 0dcd2368c3e23a5cc1cc4a979d9c241ed9302236 Mon Sep 17 00:00:00 2001
+From: Romain Naour <romain.naour@openwide.fr>
+Date: Sun, 4 Jan 2015 16:06:07 +0100
+Subject: [PATCH] Makefile: install static library and headers separately
+
+Signed-off-by: Romain Naour <romain.naour@openwide.fr>
+---
+ Makefile | 12 +++++++-----
+ 1 file changed, 7 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index e27dcbd..ecf52d1 100644
+--- a/Makefile
++++ b/Makefile
+@@ -45,12 +45,10 @@ perl-lib: static
+ cd LockDev && make OPTIMIZE="-O2 -g -Wall"
+ cd LockDev && make test
+
+-.PHONY: install install_dev install_dbg install_doc install_run
+-install: install_dev install_dbg install_doc install_run
++.PHONY: install install_dev install_dbg install_doc install_run install_static
++install: install_dev install_dbg install_doc install_run install_static
+
+-install_dev: ${static} src/lockdev.h
+- install -m755 -d ${libdir}
+- install -m644 ${static} ${libdir}
++install_dev: src/lockdev.h
+ install -m755 -d ${incdir}
+ install -m644 src/lockdev.h ${incdir}
+ install -m644 src/ttylock.h ${incdir}
+@@ -69,6 +67,10 @@ install_doc: docs/lockdev.3
+ install -m755 -d ${mandir}/man3
+ install -m644 docs/lockdev.3 ${mandir}/man3
+
++install_static: ${static}
++ install -m755 -d ${libdir}
++ install -m644 ${static} ${libdir}
++
+ install_run: ${shared}
+ install -m755 -d ${libdir}
+ install -m644 ${shared} ${libdir}
+--
+1.9.3
+
OpenPOWER on IntegriCloud