Skip to content

Commit 08320b8

Browse files
committed
Hide symbols
1 parent 55e73af commit 08320b8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

third_party/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
set(TORCHAUDIO_THIRD_PARTIES "")
22

3+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility=hidden")
4+
35
################################################################################
46
# sox
57
################################################################################

third_party/sox/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set(COMMON_ARGS --quiet --disable-shared --enable-static --prefix=${INSTALL_DIR}
1111
set(envs
1212
"PKG_CONFIG_PATH=${INSTALL_DIR}/lib/pkgconfig"
1313
"LDFLAGS=-L${INSTALL_DIR}/lib $ENV{LDFLAGS}"
14-
"CPPFLAGS=-I${INSTALL_DIR}/include $ENV{CPPFLAGS}"
14+
"CFLAGS=-I${INSTALL_DIR}/include -fvisibility=hidden $ENV{CFLAGS}"
1515
)
1616

1717
ExternalProject_Add(mad

0 commit comments

Comments
 (0)