mirror of
https://github.com/Xpl0itU/WiiUDownloader.git
synced 2025-05-29 06:25:30 -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
|
*.dll
|
||||||
gtitles.c
|
gtitles.c
|
||||||
output/
|
output/
|
||||||
|
main
|
||||||
|
*.a
|
||||||
|
|
|
@ -2,8 +2,8 @@ package wiiudownloader
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo CFLAGS: -I${SRCDIR}/cdecrypt
|
#cgo CFLAGS: -I${SRCDIR}/cdecrypt
|
||||||
#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}/cdecrypt
|
#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}
|
||||||
#cgo LDFLAGS: -L${SRCDIR}/cdecrypt
|
#cgo LDFLAGS: -L${SRCDIR}
|
||||||
#cgo LDFLAGS: -lcdecrypt
|
#cgo LDFLAGS: -lcdecrypt
|
||||||
#include <cdecrypt.h>
|
#include <cdecrypt.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
|
@ -16,8 +16,10 @@ urllib.request.install_opener(opener)
|
||||||
|
|
||||||
checkAndDeleteFile("gtitles/gtitles.c")
|
checkAndDeleteFile("gtitles/gtitles.c")
|
||||||
urllib.request.urlretrieve("https://napi.nbg01.v10lator.de/db", "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 -c -Wall -fpic -Igtitles -o gtitles/gtitles.o gtitles/gtitles.c")
|
||||||
os.system("gcc -shared -o gtitles/libgtitles.so gtitles/gitles.o")
|
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("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")
|
os.system("gcc -shared -o cdecrypt/libcdecrypt.so cdecrypt/*.o")
|
||||||
|
|
|
@ -2,8 +2,8 @@ package wiiudownloader
|
||||||
|
|
||||||
/*
|
/*
|
||||||
#cgo CFLAGS: -I${SRCDIR}/gtitles
|
#cgo CFLAGS: -I${SRCDIR}/gtitles
|
||||||
#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}/gtitles
|
#cgo LDFLAGS: -Wl,-rpath,${SRCDIR}
|
||||||
#cgo LDFLAGS: -L${SRCDIR}/gtitles
|
#cgo LDFLAGS: -L${SRCDIR}
|
||||||
#cgo LDFLAGS: -lgtitles
|
#cgo LDFLAGS: -lgtitles
|
||||||
#include <gtitles.h>
|
#include <gtitles.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue