[sr-dev] [kamailio/kamailio] add debuginfo on dist other then x86 (#2789)
notifications at github.com
Sat Jun 26 12:51:27 CEST 2021
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.
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
@@ -885,7 +885,7 @@ endif
ifeq ($(ARCH), aarch64)
- C_DEFS+=-DNOSMP # memory barriers not implemented for arm
+ C_DEFS+= -g -DNOSMP # memory barriers not implemented for arm
ifeq ($(ARCH), ppc)
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sr-dev