Created
November 8, 2021 06:40
-
-
Save JohnnyonFlame/51bd7784c2d0ce45959cfdcaf37f40cd to your computer and use it in GitHub Desktop.
Empty libcurl-gnutls.so.4 stub
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
gcc -c empty.c -o empty.o -m32 | |
gcc -fPIC -shared -Wl,-soname,libcurl-gnutls.so.4 empty.o -o libcurl-gnutls.so.4 -m32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for games where working libcurl isn't needed - just lib and basic funcs | |
// E.g.: Don't Starve | |
int curl_global_init(long flags) {return 0;} | |
void *curl_easy_init() { return 0; } | |
int curl_easy_setopt(void *handle, unsigned int option, ...) { return 0; } | |
void curl_easy_cleanup(void *handle) { } | |
void curl_global_cleanup(void) { } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment