fix: get it to actually build a staticlib

This commit is contained in:
Tropical
2026-03-14 20:19:31 -05:00
parent e0dc7cb2f5
commit 85ed55bf7e
2 changed files with 10 additions and 24 deletions
+4 -4
View File
@@ -1,8 +1,8 @@
import sys, struct, glob, shutil
import sys, struct, shutil
def patch_relocs():
def patch_relocs(object_files):
patched = 0
for f in glob.glob("*.obj"):
for f in object_files:
outfile = f.replace('.obj', '.o')
shutil.copy(f, outfile)
@@ -35,4 +35,4 @@ def patch_relocs():
print(f"Patched {patched} 'type 40' relocations to standard GOTPCREL (9).")
if __name__ == '__main__':
patch_relocs()
patch_relocs(sys.argv[1:])