fltk: fix build issue caused by rpath
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 21 Feb 2015 14:02:58 +0000 (15:02 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sat, 21 Feb 2015 14:02:58 +0000 (15:02 +0100)
commita125d213b4809e02b68d1b636e86cc6f8bb307d8
tree0cad1ace0c93d0a9fb5ee090ba077a01e346e029
parentb7905227c5ed89fa3c13f4d28f23fb492e54f15e
fltk: fix build issue caused by rpath

The fltk build system has some logic that causes it to pass
-Wl,-rpath,/usr/lib when --libdir is not /usr/lib. However, in our
case, libdir is ${exec_prefix}/lib, and is not expanded to /usr/lib
before the rpath related test is done. Rather than fixing the fltk
build system, this commit works around the problem by explicitly
passing --libdir=/usr/lib.

Fixes:

  http://autobuild.buildroot.org/results/8d1/8d1b202a182e3fb5dee21f20afc9f749c2defa1a/

and many other similar build failures that have been occuring since 1+
year.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/fltk/fltk.mk