diff --git a/src/meson.build b/src/meson.build index f53bbcd8df4ea18aa7ff39c58fd71774fb146128..20629160443c56c0515bfc96a46f14bbe080d8d1 100644 --- a/src/meson.build +++ b/src/meson.build @@ -18,8 +18,9 @@ ext_deps = [] deps = static_link_libraries if get_option('buildtype').contains('debug') + # debug compile need with debuginfo default_cflags += [ '-pedantic', '-DPEDANTIC', '-Og', '-g', '-rdynamic' ] - default_ldflags += ['-rdynamic'] + default_ldflags += [ '-Og', '-g', '-rdynamic'] else default_cflags += [ '-UPEDANTIC', '-O2' ] endif diff --git a/tests/test_simple/Makefile b/tests/test_simple/Makefile index 261d425364177420d4e73ab6fe9065ab9ce790a8..7b2379b513d1d171bbaa79b81629506a2e3df17c 100644 --- a/tests/test_simple/Makefile +++ b/tests/test_simple/Makefile @@ -30,7 +30,6 @@ simple_app: # static mode simple: simple_app - clear @echo ===rto=== $(SYSBOOST) --static-nold $(TEST_APP) $(LIBC) readelf -W -a $(TEST_APP).rto > simple_app.rto.elf