Source: routino
Version: 3.4.1-1
Severity: normal
Tags: sid patch
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: loong64

Dear Maintainer,

Routino compiles incorrectly on loongarch. The attached patch solves the above 
problem. It has been verified and compiled successfully in the local 
environment.

wuruilong
--- routino-3.4.1.orig/Makefile.conf
+++ routino-3.4.1/Makefile.conf
@@ -190,6 +190,10 @@ ifneq ($(HOST),MINGW)
 endif
 
 # Hardening flags
+ifeq ($(DEB_HOST_ARCH), loong64)
+CFLAGS+=-g -fPIE -fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security 
+else
 CFLAGS+=-g -fPIE -fstack-protector-strong -fstack-clash-protection -Wformat 
-Werror=format-security -fcf-protection
+endif
 CFLAGS+=-Wdate-time -D_FORTIFY_SOURCE=2
 LDFLAGS+=-fPIE -pie -Wl,-z,relro -Wl,-z,now

Reply via email to