# Suricata 7.0.4 compiles with gcc debugging enabled by default?

**URL:** <https://forum.suricata.io/t/suricata-7-0-4-compiles-with-gcc-debugging-enabled-by-default/4589>\
**Category:** Developers\
**Created:** [April 9, 2024, 9:09pm UTC](https://forum.suricata.io/t/suricata-7-0-4-compiles-with-gcc-debugging-enabled-by-default/4589 "2024-04-09T21:09:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![triton](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@triton](https://forum.suricata.io/u/triton)\
**Post date:** [April 9, 2024, 9:09pm UTC](https://forum.suricata.io/t/suricata-7-0-4-compiles-with-gcc-debugging-enabled-by-default/4589/1 "2024-04-09T21:09:09Z")

</div>

snippet from “suricata --build-info” below, notice the -g -O2

Host: x86\_64-unknown-freebsd14.0  
Compiler: gcc (exec name) / c++ (real)  
GCC Protect enabled: no  
GCC march native enabled: yes  
GCC Profile enabled: no  
Position Independent Executable enabled: no  
CFLAGS -g -O2 -DOS\_FREEBSD -std=c11 -march=native -I${srcdir}/…/rust/gen -I${srcdir}/…/rust/dist  
PCAP\_CFLAGS  
SECCFLAGS

1. Is suricata supposed to be compiled with gcc debuging symbols by default?
2. How do one go about to disable these? (ideally without having to edit files)

---

<div class="post-metadata">

**Author:** ![cjca](https://avatars.discourse-cdn.com/v4/letter/c/82dd89/32.png) [@cjca](https://forum.suricata.io/u/cjca)\
**Post date:** [April 10, 2024, 12:39am UTC](https://forum.suricata.io/t/suricata-7-0-4-compiles-with-gcc-debugging-enabled-by-default/4589/2 "2024-04-10T00:39:00Z")

</div>

Hello, has anyone experienced the problem that the Suricata 7.0.4\_1 service does not initialize. I’m using pass

---

<div class="post-metadata">

**Author:** ![vjulien](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vjulien/32/4_2.png) [@vjulien](https://forum.suricata.io/u/vjulien)\
**Post date:** [April 10, 2024, 7:09am UTC](https://forum.suricata.io/t/suricata-7-0-4-compiles-with-gcc-debugging-enabled-by-default/4589/3 "2024-04-10T07:09:43Z")

</div>

I don’t think the Suricata build scripts set these by default, or at all. How are you building Suricata?

---

<div class="post-metadata">

**Author:** ![vjulien](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vjulien/32/4_2.png) [@vjulien](https://forum.suricata.io/u/vjulien)\
**Post date:** [April 10, 2024, 7:09am UTC](https://forum.suricata.io/t/suricata-7-0-4-compiles-with-gcc-debugging-enabled-by-default/4589/4 "2024-04-10T07:09:56Z")

</div>

Please open your own topic for this unrelated question.

---

<div class="post-metadata">

**Author:** ![triton](https://avatars.discourse-cdn.com/v4/letter/t/c5a1d2/32.png) [@triton](https://forum.suricata.io/u/triton)\
**Post date:** [April 10, 2024, 10:14am UTC](https://forum.suricata.io/t/suricata-7-0-4-compiles-with-gcc-debugging-enabled-by-default/4589/5 "2024-04-10T10:14:00Z")

</div>

./configure --enable-ipfw --enable-luajit --with-libluajit-includes=/usr/local/include/luajit-2.1 --with-libluajit-libraries=/usr/local/lib
