mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-30 15:05:18 -04:00
Statically link the C libraries
This commit is contained in:
parent
48859f2215
commit
2d50b146af
4 changed files with 10 additions and 6 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -5,3 +5,5 @@
|
|||
*.dll
|
||||
gtitles.c
|
||||
output/
|
||||
main
|
||||
*.a
|
||||
|
|
|
@ -2,8 +2,8 @@ package wiiudownloader
|
|||
|
||||
/*
|
||||
#cgo CFLAGS: -I${SRCDIR}/cdecrypt
|
||||
#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}/cdecrypt
|
||||
#cgo LDFLAGS: -L${SRCDIR}/cdecrypt
|
||||
#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}
|
||||
#cgo LDFLAGS: -L${SRCDIR}
|
||||
#cgo LDFLAGS: -lcdecrypt
|
||||
#include <cdecrypt.h>
|
||||
#include <ctype.h>
|
||||
|
|
|
@ -16,8 +16,10 @@ urllib.request.install_opener(opener)
|
|||
|
||||
checkAndDeleteFile("gtitles/gtitles.c")
|
||||
urllib.request.urlretrieve("https://napi.nbg01.v10lator.de/db", "gtitles/gtitles.c")
|
||||
os.system("gcc -c -Wall -fpic -Igtitles -o gtitles/gitles.o gtitles/gtitles.c")
|
||||
os.system("gcc -shared -o gtitles/libgtitles.so gtitles/gitles.o")
|
||||
os.system("gcc -c -Wall -fpic -Igtitles -o gtitles/gtitles.o gtitles/gtitles.c")
|
||||
os.system("ar rcs libgtitles.a gtitles/gtitles.o")
|
||||
os.system("gcc -shared -o gtitles/libgtitles.so gtitles/gtitles.o")
|
||||
|
||||
os.system("gcc -c -Wall -fpic -Icdecrypt cdecrypt/*.c")
|
||||
os.system("ar rcs libcdecrypt.a cdecrypt/*.o")
|
||||
os.system("gcc -shared -o cdecrypt/libcdecrypt.so cdecrypt/*.o")
|
||||
|
|
|
@ -2,8 +2,8 @@ package wiiudownloader
|
|||
|
||||
/*
|
||||
#cgo CFLAGS: -I${SRCDIR}/gtitles
|
||||
#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}/gtitles
|
||||
#cgo LDFLAGS: -L${SRCDIR}/gtitles
|
||||
#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}
|
||||
#cgo LDFLAGS: -L${SRCDIR}
|
||||
#cgo LDFLAGS: -lgtitles
|
||||
#include <gtitles.h>
|
||||
#include <ctype.h>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue