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

package info (click to toggle)
7zip 24.09%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 13,436 kB
  • sloc: cpp: 206,595; ansic: 39,085; asm: 4,357; makefile: 2,188; sh: 162
file content (23 lines) | stat: -rw-r--r-- 673 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
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Fri, 27 Dec 2024 12:15:55 +0900
Subject: Add "-fpic" for Asmc options

Asmc author suggests this option:
* https://github.com/nidud/asmc/issues/15#issuecomment-2554348661
---
 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 4b0cc27..792ad13 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