File: 0005-Add-pthread-compiler-and-linker-flag.patch

package info (click to toggle)
osspd 1.3.2-13.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 760 kB
  • sloc: ansic: 16,335; makefile: 271; sh: 83
file content (26 lines) | stat: -rw-r--r-- 788 bytes parent folder | download | duplicates (3)
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
From: Ralf Jung <post@ralfj.de>
Date: Sat, 11 May 2013 14:24:17 +0200
Subject: Add -pthread compiler and linker flag

(based on patch in Ubuntu by Logan Rosen <logan@ubuntu.com>)
Forwarded: http://sourceforge.net/mailarchive/forum.php?thread_name=518E3901.8050206%40ralfj.de&forum_name=osspd-users
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 236176e..11f2836 100644
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,9 @@
 # DESTDIR is completely respected
 CC := gcc
 AR := ar
-CFLAGS := -Wall $(CFLAGS) $(CPPFLAGS)
+CFLAGS := -Wall -pthread $(CFLAGS) $(CPPFLAGS)
 XLDFLAGS := $(LDFLAGS)
-LDFLAGS := -L. -lossp $(LDFLAGS)
+LDFLAGS := -L. -lossp -pthread $(LDFLAGS)
 prefix := /usr/local
 DESTDIR :=
 UDEVDIR := /etc/udev/rules.d