Skip to content

Commit

Permalink
[O2-4427] Don't use Homebrew's libwebsockets (#5257)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimoWilken authored Nov 28, 2023
1 parent 3f14000 commit 91f75e8
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions libwebsockets.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,21 @@ build_requires:
- "OpenSSL:(?!osx)"
- ninja
- alibuild-recipe-tools
prefer_system: .*
# On Mac, Brew's libwebsockets loads Brew's Python, which confuses ROOT.
prefer_system: "(?!osx_)"
prefer_system_check: |
printf '#if !__has_include(<lws_config.h>)\n#error \"Cannot find libwebsocket\"\n#endif\n' | cc -I$(brew --prefix libwebsockets)/include -c -xc - -o /dev/null
printf '#include <lws_config.h>\n#if LWS_LIBRARY_VERSION_NUMBER < 4000000 \n#error \"JAliEn-ROOT requires libwebsockets >= 4.0 but lesser version was detected\"\n#endif\n' | cc -c -x c -I$(brew --prefix libwebsockets)/include - -o /dev/null || exit 1
#!/bin/bash -e
cc -c -xc - -o /dev/null <<\EOF
#if !__has_include(<lws_config.h>)
#error "Cannot find libwebsocket"
#endif
EOF
cc -c -xc - -o /dev/null <<\EOF
#include <lws_config.h>
#if LWS_LIBRARY_VERSION_NUMBER < 4000000
#error "JAliEn-ROOT requires libwebsockets >= 4.0 but lesser version was detected"
#endif
EOF
---
#!/bin/bash -e
SONAME=so
Expand Down

0 comments on commit 91f75e8

Please sign in to comment.