Skip to content

Commit 2bf8e82

Browse files
committed
add -fvisibility=hidden flags
1 parent 6a48101 commit 2bf8e82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build.sh

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ cd ..
5454
mkdir build
5555
cd build
5656
cmake ../qt5/qtbase -G "Ninja" \
57-
-DBUILD_SHARED_LIBS=OFF \
5857
-DCMAKE_BUILD_TYPE=Release \
58+
-DBUILD_SHARED_LIBS=OFF \
59+
-DCMAKE_C_FLAGS="-fpic -fvisibility=hidden" \
60+
-DCMAKE_CXX_FLAGS="-fpic -fvisibility=hidden" \
5961
-DCMAKE_INSTALL_PREFIX=${INSTALL_PREFIX} \
6062
-DCMAKE_MESSAGE_LOG_LEVEL=STATUS \
6163
-DCMAKE_CXX_COMPILER_LAUNCHER=ccache \

0 commit comments

Comments
 (0)