Skip to content

Commit

Permalink
Change the linkage spec for contactcache-qt5
Browse files Browse the repository at this point in the history
We only depend on contactcache-qt5 for include files, we don't want
to link against the library.  The previous mechanism does not work in
OBS, so switch to using the --as-needed linker flag.
  • Loading branch information
matthewvogt committed Apr 8, 2016
1 parent b506257 commit 4a3e037
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/src.pro
Expand Up @@ -6,9 +6,10 @@ CONFIG += qt plugin hide_symbols c++11
QT += qml

CONFIG += link_pkgconfig
PKGCONFIG += contactcache-qt5

# We just need the include path from contactcache, not the library itself
QMAKE_CXXFLAGS *= $$system(pkg-config --cflags contactcache-qt5)
# Drop any library linkage we don't actually need (such as contactcache-qt5)
QMAKE_LFLAGS *= -Wl,--as-needed

target.path = $$[QT_INSTALL_QML]/$$PLUGIN_IMPORT_PATH
INSTALLS += target
Expand Down

0 comments on commit 4a3e037

Please sign in to comment.