Last active
May 28, 2025 03:18
-
-
Save vanhtuan0409/f2e7bc7da4ada3497da832408352afcc to your computer and use it in GitHub Desktop.
Mtproxy aarch patch
This file contains hidden or 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
diff --git a/Makefile b/Makefile | |
index 78d6688..f6f70cf 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -16,8 +16,8 @@ endif | |
ARCH := $(shell arch) | |
# Default CFLAGS and LDFLAGS | |
-COMMON_CFLAGS := -O3 -std=gnu11 -Wall -fno-strict-aliasing -fno-strict-overflow -fwrapv -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 | |
-COMMON_LDFLAGS := -ggdb -rdynamic -lm -lrt -lcrypto -lz -lpthread -lcrypto | |
+COMMON_CFLAGS := -O3 -std=gnu11 -Wall -fno-strict-aliasing -fno-strict-overflow -fwrapv -fcommon -DAES=1 -DCOMMIT=\"${COMMIT}\" -D_GNU_SOURCE=1 -D_FILE_OFFSET_BITS=64 | |
+COMMON_LDFLAGS := -static -pthread $(ARCH) -ggdb -lm -lrt -lz -lpthread -lssl -lcrypto -fcommon -ldl | |
# Architecture-specific CFLAGS | |
ifeq ($(ARCH), x86_64) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment