mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 05:05:20 -05:00
Replace the use of uname to get the build output.
Using uname has a couple of problems, especially when cross compiling. Instead check the defines set by the preprocessor to figure the type of binaries it produces. This improves support for cross compiling as it allows to (1) select the correct default target and (2) makes it possible to use separate build folders for different targets. Change-Id: I69a32904dab97755034f2f0d63f8402309d479d2
This commit is contained in:
parent
891351db60
commit
ea0bfe7520
2 changed files with 15 additions and 12 deletions
|
|
@ -27,10 +27,8 @@ BOOTSRC = ipod1g2g.c ipod3g.c ipod4g.c ipodcolor.c ipodmini1g.c \
|
|||
CFLAGS += -DWITH_BOOTOBJS
|
||||
endif
|
||||
|
||||
ifeq ($(findstring Darwin,$(shell uname)),Darwin)
|
||||
# additional frameworks to link on on OS X
|
||||
LDOPTS += -framework CoreFoundation -framework IOKit
|
||||
endif
|
||||
LDOPTS_OSX += -framework CoreFoundation -framework IOKit
|
||||
|
||||
LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \
|
||||
ipodio-posix.c ipodio-win32-scsi.c ipodio-win32.c
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue