File: fix-riscv64.patch

package info (click to toggle)
fastp 1.0.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 780 kB
  • sloc: cpp: 9,822; makefile: 41; sh: 31
file content (18 lines) | stat: -rw-r--r-- 726 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Correctly link the binary with -pthread, to include -latomic when needed.
Author: Aurelien Jarno <aurel32@debian.org>
Last-Update: 2025-08-16

--- a/Makefile
+++ b/Makefile
@@ -16,9 +16,9 @@
 
 CXX ?= g++
 CXXFLAGS += -std=c++11 -pthread -g -O3 -MD -MP -I${DIR_INC} $(foreach includedir,$(INCLUDE_DIRS),-I$(includedir))
-LIBS := -lisal -ldeflate -lpthread
+LIBS := -lisal -ldeflate
 STATIC_FLAGS := -static -Wl,--no-as-needed -pthread
-LDFLAGS += $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) $(LIBS)
+LDFLAGS += $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) $(LIBS) -pthread
 STATIC_LD_FLAGS := $(foreach librarydir,$(LIBRARY_DIRS),-L$(librarydir)) $(STATIC_FLAGS) $(LIBS) $(STATIC_LD_FLAGS)