crash/SOURCES/lzo_snappy_zstd.patch

25 lines
705 B
Diff
Raw Normal View History

2022-11-08 06:43:27 +00:00
--- crash-7.3.2/Makefile.orig
+++ crash-7.3.2/Makefile
@@ -253,7 +253,7 @@ all: make_configure
2019-05-07 13:44:18 +00:00
gdb_merge: force
@if [ ! -f ${GDB}/README ]; then \
2022-11-08 06:43:27 +00:00
$(MAKE) gdb_unzip; fi
2019-05-07 13:44:18 +00:00
- @echo "${LDFLAGS} -lz -ldl -rdynamic" > ${GDB}/gdb/mergelibs
2022-05-10 07:04:45 +00:00
+ @echo "${LDFLAGS} -lz -llzo2 -lsnappy -lzstd -ldl -rdynamic" > ${GDB}/gdb/mergelibs
2019-05-07 13:44:18 +00:00
@echo "../../${PROGRAM} ../../${PROGRAM}lib.a" > ${GDB}/gdb/mergeobj
@rm -f ${PROGRAM}
@if [ ! -f ${GDB}/config.status ]; then \
2022-11-08 06:43:27 +00:00
--- crash-7.3.2/diskdump.c.orig
+++ crash-7.3.2/diskdump.c
2022-05-10 07:04:45 +00:00
@@ -23,6 +23,9 @@
2020-11-03 12:07:52 +00:00
* GNU General Public License for more details.
*/
+#define LZO
+#define SNAPPY
2022-05-10 07:04:45 +00:00
+#define ZSTD
2020-11-03 12:07:52 +00:00
#include "defs.h"
#include "diskdump.h"
#include "xen_dom0.h"
2022-11-08 06:43:27 +00:00
--