From 1dbf4b13515932f4444057827fe7d443b2ded71c Mon Sep 17 00:00:00 2001 From: Adam Greene Date: Mon, 15 May 2017 12:42:53 -0400 Subject: [PATCH] md --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b54c7c6..fd1b19d 100644 --- a/README.md +++ b/README.md @@ -129,7 +129,9 @@ $ ./configure --prefix=/opt/gdbserver-7.12-static CXXFLAGS='-fPIC -static' $ make -j gdbserver GDBSERVER_LIBS="$LIBGCC $LIBCXX" ``` -You should now have a statically compiled GDB 7.12 gdbserver for your native OS. Read on for the cross-compile stuff, which is a little more involved but still pretty simple. You really should use uClibc or musl for your libc, not glibc, because getgrgid() and getpwuid() both load shared libraries. This could cause a problem if you intend to run the gdbserver executable on another machine with a different version of glibc- which more or less defeats the purpose of static linking. +You should now have a statically compiled GDB 7.12 gdbserver for your native OS. Read on for the cross-compile stuff, which is a little more involved but still pretty simple. + +*NOTE: You really should use uClibc or musl for your libc, not glibc, because getgrgid() and getpwuid() both load shared libraries. This could cause a problem if you intend to run the gdbserver executable on another machine with a different version of glibc- which more or less defeats the purpose of static linking. You will also run into issues with any application that uses libnss when linking against glibc* ## License