Skip to content

Commit

Permalink
compiler.pri: handle Debian c++11 lib path.
Browse files Browse the repository at this point in the history
  • Loading branch information
mkrautz committed Nov 5, 2016
1 parent 0f38989 commit 2a8686a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions compiler.pri
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,20 @@ unix {
QMAKE_CXXFLAGS += -std=c++98
QMAKE_LFLAGS += -std=c++98
}

# Debian seems to put C++11 variants of shared libraries
# in /usr/lib/$triple/c++11.
#
# At least, that is the case for ZeroC Ice.
#
# The expectation is that this is a general convention,
# so add it to our library search path in C++11 mode.
CONFIG(c++11)|CONFIG(c++14)|CONFIG(c++1z) {
MULTIARCH_TRIPLE = $$system($${QMAKE_CXX} -print-multiarch)
!isEmpty(MULTIARCH_TRIPLE) {
QMAKE_LIBDIR *= /usr/lib/$${MULTIARCH_TRIPLE}/c++11
}
}
}

contains(UNAME, FreeBSD) {
Expand Down

0 comments on commit 2a8686a

Please sign in to comment.