Commit 33bc3581 authored by Edward Z. Yang's avatar Edward Z. Yang Committed by Soumith Chintala
Browse files

Link against mad in setup.py (#182)


Signed-off-by: default avatarEdward Z. Yang <ezyang@fb.com>
parent 476a7bdf
......@@ -37,9 +37,13 @@ if IS_WHEEL:
include_dirs += [os.path.join(audio_path, 'third_party/flac/include')]
include_dirs += [os.path.join(audio_path, 'third_party/lame/include')]
include_dirs += [os.path.join(audio_path, 'third_party/sox/include')]
include_dirs += [os.path.join(audio_path, 'third_party/mad/include')]
# proper link order (sox, flac, lame)
# proper link order (sox, mad, flac, lame)
# (the most important thing is that dependencies come after a libraryl
# e.g., sox comes first)
extra_objects += [os.path.join(audio_path, 'third_party/sox/lib/libsox.a')]
extra_objects += [os.path.join(audio_path, 'third_party/mad/lib/libmad.a')]
extra_objects += [os.path.join(audio_path, 'third_party/flac/lib/libFLAC.a')]
extra_objects += [os.path.join(audio_path, 'third_party/lame/lib/libmp3lame.a')]
else:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment