Skip to content

Commit

Permalink
add rpath option.
Browse files Browse the repository at this point in the history
  • Loading branch information
treefrogframework committed Jul 2, 2016
1 parent ff7772e commit 0f3e022
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ while [ -n "`echo $1 | grep '-'`" ]; do
done

cd "$BASEDIR"
$SED "s|unix:LIBS +=.*$|unix:LIBS += -Wl,-rpath,$LIBDIR -L$LIBDIR -ltreefrog|" defaults/appbase.pri
$SED "s|unix:LIBS +=.*$|unix:LIBS += -Wl,-rpath,. -Wl,-rpath,$LIBDIR -L$LIBDIR -ltreefrog|" defaults/appbase.pri
$SED "s|unix:INCLUDEPATH +=.*$|unix:INCLUDEPATH += $INCLUDEDIR|" defaults/appbase.pri

if [ -n "$ENABLE_DEBUG" ]; then
Expand Down
2 changes: 1 addition & 1 deletion defaults/appbase.pri
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ win32 {
LIBS += -ltreefrog1
}
} else {
unix:LIBS += -Wl,-rpath,/usr/lib -L/usr/lib -ltreefrog
unix:LIBS += -Wl,-rpath,. -Wl,-rpath,/usr/lib -L/usr/lib -ltreefrog
unix:INCLUDEPATH += /usr/include/treefrog

# c++11
Expand Down

0 comments on commit 0f3e022

Please sign in to comment.