Skip to content

Commit

Permalink
qmake: able to disable rpath. wang-bin#405
Browse files Browse the repository at this point in the history
some OSes disallow rpath. also not necessary for system package build
  • Loading branch information
wang-bin committed Apr 23, 2015
1 parent 1ee9a8c commit 14f941e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
5 changes: 1 addition & 4 deletions examples/common/libcommon.pri
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,8 @@ DEPENDPATH *= $$PROJECT_SRCPATH
INSTALLS += target
}
}
!no_rpath:!cross_compile:set_rpath($$PROJECT_LIBDIR)

!cross_compile: RPATHDIR *= $$PROJECT_LIBDIR
set_rpath($$RPATHDIR)

unset(RPATHDIR)
unset(LIB_VERSION)
unset(PROJECT_SRCPATH)
unset(PROJECT_LIBDIR)
Expand Down
5 changes: 1 addition & 4 deletions qml/libQmlAV.pri
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,8 @@ DEPENDPATH *= $$PROJECT_SRCPATH
INSTALLS += target
}
}
!no_rpath:!cross_compile:set_rpath($$PROJECT_LIBDIR)

!cross_compile: RPATHDIR *= $$PROJECT_LIBDIR
set_rpath($$RPATHDIR)

unset(RPATHDIR)
unset(LIB_VERSION)
unset(PROJECT_SRCPATH)
unset(PROJECT_LIBDIR)
Expand Down
4 changes: 1 addition & 3 deletions src/libQtAV.pri
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,9 @@ DEPENDPATH *= $$PROJECT_SRCPATH
INSTALLS += target
}
}
!cross_compile: RPATHDIR *= $$PROJECT_LIBDIR
set_rpath($$RPATHDIR)
!no_rpath:!cross_compile:set_rpath($$PROJECT_LIBDIR)

*maemo*: QMAKE_LFLAGS += -lasound
unset(RPATHDIR)
unset(LIB_VERSION)
unset(PROJECT_SRCPATH)
unset(PROJECT_LIBDIR)
Expand Down
5 changes: 1 addition & 4 deletions widgets/libQtAVWidgets.pri
Original file line number Diff line number Diff line change
Expand Up @@ -139,11 +139,8 @@ DEPENDPATH *= $$PROJECT_SRCPATH
INSTALLS += target
}
}
!no_rpath:!cross_compile:set_rpath($$PROJECT_LIBDIR)

!cross_compile: RPATHDIR *= $$PROJECT_LIBDIR
set_rpath($$RPATHDIR)

unset(RPATHDIR)
unset(LIB_VERSION)
unset(PROJECT_SRCPATH)
unset(PROJECT_LIBDIR)
Expand Down

0 comments on commit 14f941e

Please sign in to comment.