Skip to content

Commit bd9cc1e

Browse files
stevenjtstechyo
authored andcommitted
Only export entry symbol when compiling for Linux
1 parent b0fe770 commit bd9cc1e

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

SConstruct

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ steam_audio_lib_path = env.get("STEAM_AUDIO_LIB_PATH", "src/lib/steamaudio/lib")
1717
if env["platform"] == "linux":
1818
env.Append(LIBPATH=[f'{steam_audio_lib_path}/linux-x64'])
1919
env.Append(LIBS=["libphonon.so"])
20+
env.Append(LINKFLAGS=["-Wl,--version-script={}".format(env.File("linux_symbols.map").abspath)])
2021
elif env["platform"] == "windows":
2122
env.Append(LIBPATH=[f'{steam_audio_lib_path}/windows-x64'])
2223
env.Append(LIBS=["phonon"])

linux_symbols.map

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
global:
3+
init_extension;
4+
local:
5+
*;
6+
};

0 commit comments

Comments
 (0)