Created
November 25, 2019 11:17
-
-
Save personshelldon/1532babefff4cb49bcffb7a9a357f2d0 to your computer and use it in GitHub Desktop.
GDB arm64 static link
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
diff --git a/Makefile b/Makefile | |
index cc14745..546d8ee 100644 | |
--- a/Makefile | |
+++ b/Makefile | |
@@ -429,11 +429,12 @@ IPA_OBJS = \ | |
${IPA_DEPFILES} | |
IPA_LIB = libinproctrace.so | |
+INTERNAL_IPA_LDFLAGS = $(sed -i "s/-static//g" "${INTERNAL_LDFLAGS}") | |
$(IPA_LIB): $(sort $(IPA_OBJS)) ${CDEPS} | |
$(SILENCE) rm -f $(IPA_LIB) | |
$(ECHO_CXXLD) $(CC_LD) -shared -fPIC -Wl,--soname=$(IPA_LIB) \ | |
- -Wl,--no-undefined $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) \ | |
+ -Wl,--no-undefined $(INTERNAL_CFLAGS) $(INTERNAL_IPA_LDFLAGS) \ | |
-o $(IPA_LIB) ${IPA_OBJS} -ldl -pthread | |
# Put the proper machine-specific files first, so M-. on a machine |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment