File: binutils_shared.patch

package info (click to toggle)
wcc 0.0.7%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 9,528 kB
  • sloc: ansic: 112,755; asm: 1,160; makefile: 1,072; pascal: 133; cpp: 119; sh: 61
file content (36 lines) | stat: -rw-r--r-- 1,572 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
31
32
33
34
35
36
Description: Make binutiles private shared library staticaly linked
 This patch correct Debian bug #949601, makin libbfd staticaly linked
 to wcc and wld.
Author: Philippe Thierry
Forwarded: https://github.com/endrazine/wcc/issues/51
Last-Update: 2025-10-07
Index: wcc/src/wcc/Makefile
===================================================================
--- wcc.orig/src/wcc/Makefile
+++ wcc/src/wcc/Makefile
@@ -25,8 +25,8 @@
 WCC :=  ./wcc
 FILE := file
 
-all::
-	$(CC) $(CFLAGS) wcc.c -o wcc -lbfd -lelf -lcapstone
+all:
+	$(CC) $(CFLAGS) wcc.c -o wcc -l:libbfd.a -l:libsframe.a -lz -ldl -liberty -lzstd -lelf -lcapstone
 #	$(CC) $(CFLAGS) -m32 -Wl,-rpath /home/jonathan/solution-exp/unlinking/awareness/self/wcc/src/wcc/lib32/  wcc.c -o wcc32 -lelf ./lib32/libbfd-2.24-system.so ./lib32/libcapstone.so.3
 
 	cp wcc ../../bin/
Index: wcc/src/wld/Makefile
===================================================================
--- wcc.orig/src/wld/Makefile
+++ wcc/src/wld/Makefile
@@ -18,8 +18,8 @@
 
 CFLAGS	:= -W -Wall -Wno-discarded-qualifiers -Wno-int-conversion -Wno-unused-parameter -Wno-unused-function -Wno-unused-result -fpie -pie -fPIC -g3 -ggdb -I../../include  -I./include/sflib/ -I./include -I../../include/  -Wno-incompatible-pointer-types  -fstack-protector-all -Wl,-z,relro,-z,now -DPACKAGE -DPACKAGE_VERSION -masm=intel -rdynamic -D_FORTIFY_SOURCE=2 -O2
 
-all::
-	$(CC) $(CFLAGS) wld.c -o wld -lbfd
+all:
+	$(CC) $(CFLAGS) wld.c -o wld -l:libbfd.a -lz -ldl -liberty
 #	$(CC) $(CFLAGS) wld.c -o wld32 -m32 ../lib32/usr/lib/libbfd.a
 
 	cp wld ../../bin/