mirror of https://github.com/Shizmob/smol
fix makefile for gcc 10
This commit is contained in:
parent
7e384a44a6
commit
5a42351a0e
5
Makefile
5
Makefile
|
@ -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:
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue