Force DWARF 4 on LLVM

Otherwise readelf just throws an absolute blowup :(

Signed-off-by: Callum Farmer <gmbr3@opensuse.org>
This commit is contained in:
Callum Farmer 2024-06-24 20:01:44 +01:00
parent 0c0b91b9f9
commit f77e4e8a8e
No known key found for this signature in database
GPG Key ID: 9A5B19E18CD0013C
1 changed files with 6 additions and 0 deletions

View File

@ -245,6 +245,12 @@ CFLAGS += $(ARCH3264) -g -O2 -Wall -Wextra -Wno-pointer-sign -Werror \
$(if $(findstring 0,$(USING_CLANG)),-fno-merge-all-constants,)
endif
# Force DWARF 4 on LLVM
# Otherwise readelf becomes very unhappy
ifeq ($(USING_CLANG),clang)
CFLAGS += -gdwarf-4
endif
ifeq ($(V),1)
ARFLAGS := rDv
else