-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from mariux64/next
Fixes a NULL pointer dereference when the first incarnation of a file with multiple hardlinks ist not created, e.g. because of `--rduce`. Minor new features and code cleanup.
- Loading branch information
Showing
2 changed files
with
57 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
To install with static glib (e.g. when system glib is to old): | ||
============================================================== | ||
git clone https://github.com/GNOME/glib.git glib_src | ||
git -C glib_src checkout 2.70.5 | ||
mkdir glib_build | ||
meson setup glib_build glib_src --buildtype release -Ddefault_library=static | ||
cd glib_build | ||
ninja build | ||
|
||
patch -p1 Makefile <<'EOF' | ||
diff --git a/Makefile b/Makefile | ||
index 921b373..7a0bd0c 100644 | ||
--- a/Makefile | ||
+++ b/Makefile | ||
@@ -1,7 +1,7 @@ | ||
CFLAGS += -O3 | ||
CFLAGS += -g -Wall -Wextra -Werror | ||
-CFLAGS += $(shell pkg-config --cflags glib-2.0) | ||
-LDLIBS += $(shell pkg-config --libs glib-2.0) | ||
+CFLAGS += -Iglib_src -Iglib_src/glib -Iglib_build/glib | ||
+LDLIBS += -Lglib_build/glib -lglib-2.0 -lpthread -lpcre | ||
|
||
cmirror: cmirror.c | ||
|
||
EOF | ||
make | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters