Skip to content

Commit 0b7ec24

Browse files
committed
Makefile.miyoo: use generic call for SYSROOT path
1 parent 4c2c0ac commit 0b7ec24

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

Makefile.miyoo

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,13 @@ else
2626
STRIP = $(TOOLCHAIN_DIR)/usr/bin/arm-linux-strip
2727
endif
2828

29-
GCW0_SDL_CONFIG ?= $(TOOLCHAIN_DIR)/usr/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/bin/sdl-config
30-
GCW0_FREETYPE_CONFIG ?= $(TOOLCHAIN_DIR)/usr/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/bin/freetype-config
29+
SYSROOT ?= $(shell $(CC) --print-sysroot)
3130

32-
GCW0_INC_DIR ?= $(TOOLCHAIN_DIR)/usr/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/include
33-
GCW0_LIB_DIR ?= $(TOOLCHAIN_DIR)/usr/arm-miyoo-linux-uclibcgnueabi/sysroot/usr/lib
31+
GCW0_SDL_CONFIG ?= $(SYSROOT)/usr/bin/sdl-config
32+
GCW0_FREETYPE_CONFIG ?= $(SYSROOT)/usr/bin/freetype-config
33+
34+
GCW0_INC_DIR ?= $(SYSROOT)/usr/include
35+
GCW0_LIB_DIR ?= $(SYSROOT)/usr/lib
3436

3537
#########################
3638
#########################

0 commit comments

Comments
 (0)