mirror of https://github.com/BOINC/boinc.git
bf807980c1
Remove "-L$(libdir) -rapth $(libdr)" from LDFLAGS of boinc libraries in Makefile.am of api, lib, sched and zlib directories to be able to cross-compile boinc. Indeed, libdir is not equal to the path where BOINC will be installed but to exec_prefix/lib. The full installation path is $(DESTDIR)/$(libdir). To cross-compile boinc, exec_prefix will be set to the target path (for example: /usr) and DESTDIR will be set (during make install) to the staging or target directory on the host (for example /home/xxx/target). The issue of adding -L$(libdir) is that it is not allowed by the compiler, the error "unsafe header/library path used in cross-compilation: '-L/usr/lib'" will be raised. As a result, remove "-L$(libdir) -rapth $(libdr)" from LDFLAGS, the default library search paths are sufficient for "standard" compilation or can be updated manually by passing the additional search path to LDFLAGS during the configure call for cross-compilation. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> |
||
---|---|---|
.. | ||
ttf/liberation-fonts-ttf-2.00.0 | ||
Makefile.am | ||
Makefile.mingw | ||
boinc_api.cpp | ||
boinc_api.h | ||
boinc_api_fortran.cpp | ||
boinc_gl.h | ||
boinc_glut.h | ||
boinc_opencl.cpp | ||
boinc_opencl.h | ||
graphics2.cpp | ||
graphics2.h | ||
graphics2_unix.cpp | ||
graphics2_util.cpp | ||
graphics2_win.cpp | ||
graphics_api.cpp | ||
graphics_api.h | ||
graphics_data.cpp | ||
graphics_data.h | ||
graphics_impl.cpp | ||
graphics_impl.h | ||
graphics_impl_lib.cpp | ||
graphics_lib.cpp | ||
graphics_lib.h | ||
gutil.cpp | ||
gutil.h | ||
gutil_text.cpp | ||
mac_icon.cpp | ||
macglutfix.m | ||
make_app_icon_h.cpp | ||
reduce.h | ||
reduce_lib.cpp | ||
reduce_main.cpp | ||
static_graphics.cpp | ||
ttfont.cpp | ||
ttfont.h | ||
windows_opengl.cpp | ||
x_opengl.cpp | ||
x_opengl.h |