File: Use_prefix.patch

package info (click to toggle)
optee-test 4.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,732 kB
  • sloc: ansic: 80,061; makefile: 356; python: 179; cpp: 115; asm: 41; sh: 23
file content (18 lines) | stat: -rw-r--r-- 426 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Use prefix and exec_prefix to define install path.
Author: Dylan Aïssi <dylan.aissi@collabora.com>

--- a/Makefile
+++ b/Makefile
@@ -8,8 +8,10 @@
 endif
 endif
 
-bindir ?= /bin
-libdir ?= /lib
+prefix ?= /usr
+exec_prefix ?= $(prefix)
+bindir ?= $(exec_prefix)/bin
+libdir ?= $(exec_prefix)/lib
 
 -include $(TA_DEV_KIT_DIR)/host_include/conf.mk
 -include $(OPTEE_CLIENT_EXPORT)/include/optee_client_config.mk