File: 07-remove-rpath.patch

package info (click to toggle)
user-mode-linux 5.10um3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 308 kB
  • sloc: makefile: 106; sh: 29
file content (30 lines) | stat: -rw-r--r-- 931 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
commit 17e10328a8bcbdaae372ae333e0a057ece8bc256
Author: Mattia Dongili <malattia@linux.it>
Date:   Fri Apr 6 07:18:17 2012 +0900

    uml: Remove unnecessary RPATH definition
    
    Signed-off-by: Mattia Dongili <malattia@linux.it>

--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -119,7 +119,6 @@
 	$(Q)$(MAKE) $(build)=$(HOST_DIR)/um include/generated/user_constants.h
 
 LINK-$(CONFIG_LD_SCRIPT_STATIC) += -static
-LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib $(call cc-option, -no-pie)
 
 CFLAGS_NO_HARDENING := $(call cc-option, -fno-PIC,) $(call cc-option, -fno-pic,) \
 	-fno-stack-protector $(call cc-option, -fno-stack-protector-all)
--- a/arch/x86/Makefile.um
+++ b/arch/x86/Makefile.um
@@ -42,9 +42,6 @@
 ELF_ARCH := i386:x86-64
 ELF_FORMAT := elf64-x86-64
 
-# Not on all 64-bit distros /lib is a symlink to /lib64. PLD is an example.
-
-LINK-$(CONFIG_LD_SCRIPT_DYN) += -Wl,-rpath,/lib64
 LINK-y += -m64
 
 endif