Skip to content

Instantly share code, notes, and snippets.

@ABelliqueux
Last active January 24, 2022 11:36
Show Gist options
  • Save ABelliqueux/6a005097454c18ed8c3ebca4ba3a21bf to your computer and use it in GitHub Desktop.
Save ABelliqueux/6a005097454c18ed8c3ebca4ba3a21bf to your computer and use it in GitHub Desktop.
Gendev 0.7.1 makefile.gen liblto patch
--- /opt/gendev/sgdk/mkfiles/makefile.gen 2022-01-24 12:20:29.344222685 +0100
+++ /opt/gendev/sgdk/mkfiles/makefile.gen 2022-01-24 12:20:42.557612093 +0100
@@ -147,7 +147,7 @@
$(SIZEBND) out/rom.bin -sizealign 131072
out/symbol.txt: out/rom.out
- $(NM) --plugin=liblto_plugin-0.dll -n out/rom.out > out/symbol.txt
+ $(NM) --plugin=libLTO.so -n out/rom.out > out/symbol.txt
out/rom.out: out/sega.o out/cmd_ $(LIBMD)
$(CC) -B$(BIN) -n -T $(GDK)/md.ld -nostdlib out/sega.o @out/cmd_ $(LIBMD) $(LIB)/libgcc.a -o out/rom.out -Wl,--gc-sections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment