Skip to content

Commit

Permalink
Properly link with zmq stuff in tests.
Browse files Browse the repository at this point in the history
When running the tests we were dynamically linking with the
installed versions of these libraries rather than the just
compiled versions as we should be.

Thanks go to Raymond Wagner for identifying the problem.
  • Loading branch information
daniel-kristjansson committed May 31, 2013
1 parent 6646100 commit 27b78ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -20,6 +20,9 @@ contains(QMAKE_CXX, "g++") {
QMAKE_CXXFLAGS += -O0 -fprofile-arcs -ftest-coverage
QMAKE_LFLAGS += -fprofile-arcs
}
QMAKE_LFLAGS += -Wl,-rpath=$(PWD)/../../../../external/zeromq/src/.libs/
QMAKE_LFLAGS += -Wl,-rpath=$(PWD)/../../../../external/nzmqt/src/
QMAKE_LFLAGS += -Wl,-rpath=$(PWD)/../../../../external/qjson/lib/

# Input
HEADERS += test_mythsystem.h
Expand Down
Expand Up @@ -16,6 +16,9 @@ contains(QMAKE_CXX, "g++") {
QMAKE_CXXFLAGS += -O0 -fprofile-arcs -ftest-coverage
QMAKE_LFLAGS += -fprofile-arcs
}
QMAKE_LFLAGS += -Wl,-rpath=$(PWD)/../../../../external/zeromq/src/.libs/
QMAKE_LFLAGS += -Wl,-rpath=$(PWD)/../../../../external/nzmqt/src/
QMAKE_LFLAGS += -Wl,-rpath=$(PWD)/../../../../external/qjson/lib/

# Input
HEADERS += test_mythtimer.h
Expand Down

0 comments on commit 27b78ab

Please sign in to comment.