Skip to content

Instantly share code, notes, and snippets.

@ied206
ied206 / minhook_makefile_x86_with_mingw-w64.diff
Last active July 4, 2016 14:27
Patch for minhook's makefile to compile IA32 binary with MinGW-w64
--- Makefile 2016-06-25 13:21:39.821259000 +0900
+++ Makefile_64 2016-07-04 23:17:07.409314200 +0900
@@ -1,4 +1,4 @@
-WINDRES:=$(CROSS_PREFIX)windres
+WINDRES:=$(CROSS_PREFIX)windres -F pe-i386
DLLTOOL:=$(CROSS_PREFIX)dlltool
AR:=$(CROSS_PREFIX)ar
CC:=$(CROSS_PREFIX)gcc
@@ -7,8 +7,8 @@
OBJS:=$(SRCS:%.c=%.o)
@ied206
ied206 / telegram-cli-cygwin.patch
Last active April 27, 2021 10:33
telegram-cli-cygwin.patch
Binary files tg/.git/index and tg-cygwin/.git/index differ
diff -urN tg/Makefile tg-cygwin/Makefile
--- tg/Makefile 2015-06-16 12:39:34.931053900 +0900
+++ tg-cygwin/Makefile 2015-06-16 12:44:12.584342300 +0900
@@ -4,9 +4,9 @@
LDFLAGS= -L/usr/local/lib -L/usr/lib -L/usr/lib -L/usr/lib
CPPFLAGS= -I/usr/local/include -I/usr/include -I/usr/include -I/usr/include/python3.4m -I/usr/include
DEFS=-DHAVE_CONFIG_H
-COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter -fPIC
+COMPILE_FLAGS=${CFLAGS} ${CPFLAGS} ${CPPFLAGS} ${DEFS} -Wall -Werror -Wextra -Wno-missing-field-initializers -Wno-deprecated-declarations -fno-strict-aliasing -fno-omit-frame-pointer -ggdb -Wno-unused-parameter