Skip to content

Commit

Permalink
Use -rpath $(libdir) for modules, it's required in case of non-standa…
Browse files Browse the repository at this point in the history
…rd $(libdir).

Otherwise libtool cannot relink them properly.
  • Loading branch information
LStranger committed Apr 28, 2018
1 parent cce4e0b commit 402754d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ Changes on 1.3.1 since 1.3.0:
* Fixed launching menu entries shortcuts on desktop which was broken by making
them all executable in 1.3.0 - those should be launchable still.

* Fixed installing modules into non-standard path: libtool cannot relink them
properly.


Changes on 1.3.0 since 1.2.5:

Expand Down
1 change: 1 addition & 0 deletions src/modules/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ AM_CPPFLAGS = \
# tell libtool we compile module not library
AM_LDFLAGS = \
-no-undefined -module -avoid-version -shared -export-dynamic \
-L$(libdir) -rpath $(libdir) \
$(GIO_LIBS)

# the module should be linked only with libfm, not libfm-gtk or whatever
Expand Down

0 comments on commit 402754d

Please sign in to comment.