Description

I want to debug Kamailio using GDB and compiled sources on aarch64 architecture (t4g AWS instance).
But produces object files do not contain debug info.

Then executed

make -n

And found that no -g options used during compilation.
I have specified CFLAGS and CPPFLAGS but with wont help.

Expected behavior

On all dist used -g compilation flag by default.
If I have specified CFLAGS and CPPFLAGS as environment variables, then these flags used by GCC during compilation.

Actual observed behavior

-g flag do not used by default on aarch64 architecture.
CFLAGS and CPPFLAGS as environment variables do not used during compilation time.

Additional info

as hotfix I have used this patch

diff --git a/src/Makefile.defs b/src/Makefile.defs
index 027c985798..c91c34a7bb 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -885,7 +885,7 @@ endif

 ifeq ($(ARCH), aarch64)
        use_fast_lock=yes
-       C_DEFS+=-DNOSMP # memory barriers not implemented for arm
+       C_DEFS+= -g -DNOSMP # memory barriers not implemented for arm
 endif

 ifeq ($(ARCH), ppc)


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.