Skip to content

Commit 86578ad

Browse files
committed
Use static linking for boost lib to avoid version dependency issues
1 parent 5a09cd6 commit 86578ad

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qt/qt.pro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ QMAKE_CXXFLAGS += -std=c++11 -Wextra -Werror
8282
mingw:QMAKE_CXXFLAGS += -mno-ms-bitfields
8383

8484
unix: {
85-
LIBS += -lboost_system -lboost_thread
85+
# use static linking for boost to avoid version dependency issues
86+
LIBS += -Wl,-Bstatic -lboost_system -lboost_thread -Wl,-Bdynamic
8687
}
8788

8889
win32: {

0 commit comments

Comments
 (0)