crash/SOURCES/lzo_snappy_zstd.patch

24 lines
701 B
Diff
Raw Normal View History

--- crash-8.0.4/Makefile.orig
+++ crash-8.0.4/Makefile
2022-11-15 06:37:39 +00:00
@@ -256,7 +256,7 @@ all: make_configure
2022-05-17 08:51:43 +00:00
gdb_merge: force
@if [ ! -f ${GDB}/README ]; then \
2022-11-15 06:37:39 +00:00
$(MAKE) gdb_unzip; fi
2022-05-17 08:51:43 +00:00
- @echo "${LDFLAGS} -lz -ldl -rdynamic" > ${GDB}/gdb/mergelibs
+ @echo "${LDFLAGS} -lz -llzo2 -lsnappy -lzstd -ldl -rdynamic" > ${GDB}/gdb/mergelibs
@echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj
@rm -f ${PROGRAM}
@if [ ! -f ${GDB}/config.status ]; then \
--- crash-8.0.4/diskdump.c.orig
+++ crash-8.0.4/diskdump.c
2022-05-17 08:51:43 +00:00
@@ -23,6 +23,9 @@
* GNU General Public License for more details.
*/
+#define LZO
+#define SNAPPY
+#define ZSTD
#include "defs.h"
#include "diskdump.h"
#include "xen_dom0.h"