[sr-dev] [kamailio/kamailio] add debuginfo on dist other then x86 (#2789)
sergey-safarov
notifications at github.com
Sat Jun 26 12:51:27 CEST 2021
### 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
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 or view it on GitHub:
https://github.com/kamailio/kamailio/issues/2789
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20210626/61adbe20/attachment.htm>
More information about the sr-dev
mailing list