File: 0007-Add-fpic-for-Asmc-options.patch

package info (click to toggle)
7zip 25.01%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,560 kB
  • sloc: cpp: 207,815; ansic: 39,747; asm: 4,987; makefile: 2,188; sh: 162
file content (27 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (2)
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
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Fri, 27 Dec 2024 12:15:55 +0900
Subject: Add "-fpic" for Asmc options

Bug: https://github.com/nidud/asmc/issues/15#issuecomment-2554348661
Bug: https://github.com/nidud/asmc/issues/15#issuecomment-2554659070

Asmc author suggests this option:
* https://github.com/nidud/asmc/issues/15#issuecomment-2554348661
* https://github.com/nidud/asmc/issues/15#issuecomment-2554659070
---
 CPP/7zip/7zip_gcc.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CPP/7zip/7zip_gcc.mak b/CPP/7zip/7zip_gcc.mak
index 5d05cf0..3fada36 100644
--- a/CPP/7zip/7zip_gcc.mak
+++ b/CPP/7zip/7zip_gcc.mak
@@ -194,7 +194,7 @@ AFLAGS_ABI = -elf -DABI_LINUX -DABI_CDECL
 # -DABI_LINUX
 # -DABI_CDECL
 endif
-AFLAGS = -nologo $(AFLAGS_ABI) -Fo$(O)/ -c
+AFLAGS = -nologo $(AFLAGS_ABI) -Fo$(O)/ -c -fpic
 
 endif  # IS_MINGW