Skip to content

Commit

Permalink
Fix crossbuilding libtheora on the server platform.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Apr 21, 2024
1 parent d149ca8 commit e22df7c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions platform/server/detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,12 @@ def configure(env):
env.ParseConfig("pkg-config theora theoradec --cflags --libs")
else:
list_of_x86 = ["x86_64", "x86", "i386", "i586"]
if any(platform.machine() in s for s in list_of_x86):
env["x86_libtheora_opt_gcc"] = True
if env["arch"] == "":
if any(platform.machine() in s for s in list_of_x86):
env["x86_libtheora_opt_gcc"] = True
else:
if any(env["arch"] in s for s in list_of_x86):
env["x86_libtheora_opt_gcc"] = True

if not env["builtin_libvorbis"]:
env["builtin_libogg"] = False # Needed to link against system libvorbis
Expand Down

0 comments on commit e22df7c

Please sign in to comment.