fix makefile for gcc 10

This commit is contained in:
PoroCYon 2020-06-21 01:24:46 +02:00 committed by PoroCYon
parent 7e384a44a6
commit 5a42351a0e
2 changed files with 6 additions and 0 deletions

View File

@ -64,11 +64,16 @@ clean:
%/:
@mkdir -vp "$@"
# TODO: handle this in a more graceful and future-proof way!
ifneq ($(findstring (GCC) 9,$(shell $(CC) --version)),)
INCLINKOPT := -flinker-output=nolto-rel
else
ifneq ($(findstring (GCC) 10,$(shell $(CC) --version)),)
INCLINKOPT := -flinker-output=nolto-rel
else
INCLINKOPT :=
endif
endif
.SECONDARY:

View File

@ -69,6 +69,7 @@ def main():
libnames = args.library
libs = list(find_libs(spaths, libnames))
symbols = {}
#print("libs = " + str(libs))
for symbol, reloc in syms:
library = find_symbol(args.scanelf, libs, libnames, symbol)