Skip to content

Commit

Permalink
Unix|qmake: Tell linker where to find shared libraries
Browse files Browse the repository at this point in the history
When installing with a non-standard prefix, tell the dynamic linker
where the Doomsday shared libraries can be found.

Currently any library path that doesn't start with "/usr/" is
considered non-standard.
  • Loading branch information
skyjake committed Mar 30, 2012
1 parent 4b5a440 commit 83562bf
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions doomsday/config_unix.pri
Expand Up @@ -40,6 +40,12 @@ contains(QMAKE_HOST.arch, x86_64) {
}
}

# When installing libraries to a non-standard location, instruct
# the linker where to find them.
!contains(DENG_LIB_DIR, ^/usr/.*) {
QMAKE_LFLAGS += -Wl,-rpath,$$DENG_LIB_DIR
}

DENG_BASE_DIR = $$PREFIX/share/doomsday
DENG_DATA_DIR = $$DENG_BASE_DIR/data

Expand Down

0 comments on commit 83562bf

Please sign in to comment.