File: linker.patch

package info (click to toggle)
tf 1%3A4.0s1-22
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,132 kB
  • sloc: ansic: 15,621; sh: 44; makefile: 38
file content (26 lines) | stat: -rw-r--r-- 636 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
Author: Andreas Tille <tille@debian.org>
Last-Update: 2025-08-22
Description: Add missing LIBS

--- a/unix/Config
+++ b/unix/Config
@@ -124,7 +124,7 @@ CCFLAGS="-O2 -g -Wall"
 # This is the place to add extra libraries as described in unix/README
 # if your linker can't resolve an external reference.
 
-LIBS=''
+LIBS+='-lz -lm'
 
 
 ### Make Program.
--- a/unix/unix.mak
+++ b/unix/unix.mak
@@ -17,7 +17,7 @@
 #CFLAGS     = $(FLAGS)
 SHELL      = /bin/sh
 BUILDERS   = Makefile
-
+LIBS	+= -lz -lm
 
 install:  _failmsg _all $(TF) LIBRARY $(MANPAGE) $(SYMLINK)
 	@echo '#####################################################' > exitmsg