Source: wtdbg2
Version: 2.5-1
Severity: serious
Tags: ftbfs patch

https://buildd.debian.org/status/package.php?p=wtdbg2

...
gcc: error: unrecognized command line option ‘-mpopcnt’
gcc: error: unrecognized command line option ‘-msse4.2’
make[1]: *** [Makefile:27: kbm2] Error 1


Fix attached.
Description: Don't build with -mpopcnt -msse4.2
 This is a baseline violation on amd64 and i386,
 and causes FTBFS on all other release architectures.
Author: Adrian Bunk <b...@debian.org>

--- wtdbg2-2.5.orig/Makefile
+++ wtdbg2-2.5/Makefile
@@ -11,9 +11,9 @@ TIMESTAMP=$(shell date)
 endif
 
 ifeq (1, ${DEBUG})
-CFLAGS+=-g3 -W -Wall -Wno-unused-but-set-variable -O0 -DDEBUG=1 
-DVERSION="$(VERSION)" -DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 
-D_GNU_SOURCE -mpopcnt -msse4.2
+CFLAGS+=-g3 -W -Wall -Wno-unused-but-set-variable -O0 -DDEBUG=1 
-DVERSION="$(VERSION)" -DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 
-D_GNU_SOURCE
 else
-CFLAGS+=-g3 -W -Wall -Wno-unused-but-set-variable -O4 -DVERSION="$(VERSION)" 
-DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -mpopcnt -msse4.2
+CFLAGS+=-g3 -W -Wall -Wno-unused-but-set-variable -O4 -DVERSION="$(VERSION)" 
-DRELEASE="$(RELEASE)" -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE
 endif
 
 GLIBS=-lm -lrt -lpthread -lz $(LDFLAGS)

Reply via email to