Skip to content

Commit

Permalink
Future proof libcurl and libopenal loading on OpenBSD.
Browse files Browse the repository at this point in the history
ld.so does the right thing even without hardcoded versions.
Also mention curl and openal as dependencies.
  • Loading branch information
netzbasis committed May 29, 2020
1 parent d89d304 commit 4af5b3a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion readme.md
Expand Up @@ -82,7 +82,7 @@ Although the regular linux compiliation flags will work fine, to take full advan

#### OpenBSD

Install libexecinfo package if needed.
Install libexecinfo, curl and openal package if needed.

```cc *.c -o ClassiCube -I /usr/X11R6/include -I /usr/local/include -L /usr/X11R6/lib -L /usr/local/lib -lm -lpthread -lX11 -lXi -lGL -lexecinfo```

Expand Down
2 changes: 1 addition & 1 deletion src/Audio.c
Expand Up @@ -119,7 +119,7 @@ static const String alLib = String_FromConst("openal32.dll");
#elif defined CC_BUILD_OSX
static const String alLib = String_FromConst("/System/Library/Frameworks/OpenAL.framework/Versions/A/OpenAL");
#elif defined CC_BUILD_OPENBSD
static const String alLib = String_FromConst("libopenal.so.3.0");
static const String alLib = String_FromConst("libopenal.so");
#else
static const String alLib = String_FromConst("libopenal.so.1");
#endif
Expand Down
4 changes: 2 additions & 2 deletions src/Http.c
Expand Up @@ -487,8 +487,8 @@ static const String curlAlt = String_FromConst("curl.dll");
static const String curlLib = String_FromConst("/usr/lib/libcurl.4.dylib");
static const String curlAlt = String_FromConst("/usr/lib/libcurl.dylib");
#elif defined CC_BUILD_OPENBSD
static const String curlLib = String_FromConst("libcurl.so.25.17");
static const String curlAlt = String_FromConst("libcurl.so.25.16");
static const String curlLib = String_FromConst("libcurl.so");
static const String curlAlt = String_FromConst("libcurl.so");
#else
static const String curlLib = String_FromConst("libcurl.so.4");
static const String curlAlt = String_FromConst("libcurl.so.3");
Expand Down

0 comments on commit 4af5b3a

Please sign in to comment.