Add -pthread compiler and linker flag
authorRalf Jung <post@ralfj.de>
Sat, 11 May 2013 12:25:49 +0000 (14:25 +0200)
committerRalf Jung <post@ralfj.de>
Sat, 11 May 2013 12:32:33 +0000 (14:32 +0200)
debian/changelog
debian/patches/0005-Add-pthread-compiler-and-linker-flag.patch [new file with mode: 0644]
debian/patches/series

index d32608fbcdbc2083103370c9f33ff46e26e4965e..64085c493f1aa66af19cb6f782fbadc4ccba5168 100644 (file)
@@ -3,6 +3,8 @@ osspd (1.3.2-3) UNRELEASED; urgency=low
   * Provide oss-compat, as we provide OSS, and conflict with it
     since it takes the OSS major/minor numbers.
   * Update Standards-Version to 3.9.4. No changes needed.
   * Provide oss-compat, as we provide OSS, and conflict with it
     since it takes the OSS major/minor numbers.
   * Update Standards-Version to 3.9.4. No changes needed.
+  * Add "-pthreads" compiler and linker flag. Patch based on Ubuntu
+    patch by Logan Rosen <logan@ubuntu.com>.
 
  -- Ralf Jung <post@ralfj.de>  Wed, 08 May 2013 13:08:08 +0200
 
 
  -- Ralf Jung <post@ralfj.de>  Wed, 08 May 2013 13:08:08 +0200
 
diff --git a/debian/patches/0005-Add-pthread-compiler-and-linker-flag.patch b/debian/patches/0005-Add-pthread-compiler-and-linker-flag.patch
new file mode 100644 (file)
index 0000000..f2e4424
--- /dev/null
@@ -0,0 +1,25 @@
+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>)
+---
+ 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
index 80e712c2e11c964bf41a73cd0a574b4a9494e0be..fca6f92d32576d9f78874f8b7ec998be577f9c8f 100644 (file)
@@ -2,3 +2,4 @@
 0002-honor-CPPFLAGS.patch
 0003-PA-recommends-users-not-to-be-in-the-audio-group-so-.patch
 0004-Allow-to-set-slave-installation-path-during-compilat.patch
 0002-honor-CPPFLAGS.patch
 0003-PA-recommends-users-not-to-be-in-the-audio-group-so-.patch
 0004-Allow-to-set-slave-installation-path-during-compilat.patch
+0005-Add-pthread-compiler-and-linker-flag.patch