Skip to content

Commit 82df89b

Browse files
authored
Link against mad in setup.py
1 parent 5096768 commit 82df89b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

setup.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,13 @@ def check_env_flag(name, default=''):
3737
include_dirs += [os.path.join(audio_path, 'third_party/flac/include')]
3838
include_dirs += [os.path.join(audio_path, 'third_party/lame/include')]
3939
include_dirs += [os.path.join(audio_path, 'third_party/sox/include')]
40+
include_dirs += [os.path.join(audio_path, 'third_party/mad/include')]
4041

41-
# proper link order (sox, flac, lame)
42+
# proper link order (sox, mad, flac, lame)
43+
# (the most important thing is that dependencies come after a libraryl
44+
# e.g., sox comes first)
4245
extra_objects += [os.path.join(audio_path, 'third_party/sox/lib/libsox.a')]
46+
extra_objects += [os.path.join(audio_path, 'third_party/mad/lib/libmad.a')]
4347
extra_objects += [os.path.join(audio_path, 'third_party/flac/lib/libFLAC.a')]
4448
extra_objects += [os.path.join(audio_path, 'third_party/lame/lib/libmp3lame.a')]
4549
else:

0 commit comments

Comments
 (0)