From e84bcce05412a9eac95a3f6b064d4a5ccb323516 Mon Sep 17 00:00:00 2001 From: wang-bin Date: Mon, 3 Jul 2017 18:17:06 +0800 Subject: [PATCH] do not export ffmpeg symbols --- src/libQtAV.pro | 3 +++ src/unexport.list | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 src/unexport.list diff --git a/src/libQtAV.pro b/src/libQtAV.pro index 1539b6193..56f1a15fc 100644 --- a/src/libQtAV.pro +++ b/src/libQtAV.pro @@ -187,6 +187,9 @@ mac|ios { CONFIG *= config_openal SOURCES += output/audio/AudioOutputAudioToolbox.cpp LIBS += -framework AudioToolbox + LIBS += -Wl,-unexported_symbols_list $$PWD/unexport.list +} else:!win32 { + #LIBS += -Wl,--exclude-libs,ALL } win32: { HEADERS += output/audio/xaudio2_compat.h diff --git a/src/unexport.list b/src/unexport.list new file mode 100644 index 000000000..8dc3e298a --- /dev/null +++ b/src/unexport.list @@ -0,0 +1,8 @@ +_av* +_ff* +_sw* +_uchardet_* +_ass_* +_lzma_* +_al* +_rgb*