Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Set rpath instead of changing environment for RPi
Credit goes to Adrian Perez de Castro for the improvement. Signed-off-by: Guillermo A. Amaral <g@maral.me>
- Loading branch information
Showing
with
4 additions
and 17 deletions.
- +2 −0 cmake/sdlchecks.cmake
- +1 −1 configure
- +1 −1 configure.in
- +0 −15 src/video/SDL_egl.c
RPI_LDFLAGS="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lbcm_host" | ||
else | ||
RPI_CFLAGS="-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux" | ||
RPI_LDFLAGS="-L/opt/vc/lib -lbcm_host" | ||
RPI_LDFLAGS="-Wl,-rpath,/opt/vc/lib -L/opt/vc/lib -lbcm_host" | ||
fi | ||
|
||
# Save the original compiler flags and libraries |