Browse Source

fix makefile for gcc 10

pull/16/head
PoroCYon 1 year ago
committed by PoroCYon
parent
commit
5a42351a0e
2 changed files with 6 additions and 0 deletions
  1. +5
    -0
      Makefile
  2. +1
    -0
      src/smol.py

+ 5
- 0
Makefile 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:


+ 1
- 0
src/smol.py 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)


Loading…
Cancel
Save