1From 0ecb59c4dc575bb902c1955d8762f91ff79290a4 Mon Sep 17 00:00:00 2001
2From: Bartosz Bilas <b.bilas@grinn-global.com>
3Date: Tue, 23 Jun 2020 19:36:27 +0200
4Subject: [PATCH] makefile: override LDFLAGS and remove obsolete X11R6
5 lib/include directories
6
7Add "override" keyword to LDFLAGS variable in order to link libraries
8using buildroot cross-compiler correctly and remove those non-supported
9paths to lib/includes that are not used and not available in buildroot
10and in addition point to the host system libraries in a result
11cause the following warning:
12
13/home/bartekk/buildroot/output/host/opt/ext-toolchain/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.2.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld: warning: library search path "/usr/X11R6/lib" is unsafe for cross-compilation
14
15Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
16---
17 source/Irrlicht/Makefile | 3 +--
18 1 file changed, 1 insertion(+), 2 deletions(-)
19
20diff --git a/source/Irrlicht/Makefile b/source/Irrlicht/Makefile
21index 1a8277e..b323237 100644
22--- a/source/Irrlicht/Makefile
23+++ b/source/Irrlicht/Makefile
24@@ -88,8 +88,7 @@ STATIC_LIB = libIrrlicht.a
25 LIB_PATH = ../../lib/$(SYSTEM)
26 INSTALL_DIR = /usr/local/lib
27 sharedlib install: SHARED_LIB = libIrrlicht.so
28-sharedlib: LDFLAGS += -L/usr/X11R6/lib$(LIBSELECT) -lGL -lXxf86vm
29-staticlib sharedlib: CXXINCS += -I/usr/X11R6/include
30+sharedlib: override LDFLAGS += -lGL -lXxf86vm
31
32 #OSX specific options
33 staticlib_osx sharedlib_osx install_osx: SYSTEM = MacOSX
34--
352.27.0
36
37