crash/SOURCES/lzo_snappy_zstd.patch

24 lines
701 B
Diff
Raw Permalink Normal View History

2024-09-30 15:17:37 +00:00
--- crash-8.0.5/Makefile.orig
+++ crash-8.0.5/Makefile
2022-09-27 13:28:11 +00:00
@@ -256,7 +256,7 @@ all: make_configure
2022-01-11 17:53:27 +00:00
gdb_merge: force
@if [ ! -f ${GDB}/README ]; then \
2022-09-27 13:28:11 +00:00
$(MAKE) gdb_unzip; fi
2022-01-11 17:53:27 +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 \
2024-09-30 15:17:37 +00:00
--- crash-8.0.5/diskdump.c.orig
+++ crash-8.0.5/diskdump.c
2022-01-11 17:53:27 +00:00
@@ -23,6 +23,9 @@
2021-11-02 20:45:46 +00:00
* GNU General Public License for more details.
*/
+#define LZO
+#define SNAPPY
2022-01-11 17:53:27 +00:00
+#define ZSTD
2021-11-02 20:45:46 +00:00
#include "defs.h"
#include "diskdump.h"
#include "xen_dom0.h"