mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-14 10:37:38 -04:00
Fix ipodpatcher on OS X.
Fix a typo and update CC handling for OS X. Change-Id: Icde3cb5956ffe45ee1d610ff34957ed7b17f3f02
This commit is contained in:
parent
ea0bfe7520
commit
703bc407b4
2 changed files with 6 additions and 6 deletions
|
@ -28,7 +28,7 @@ CFLAGS += -DWITH_BOOTOBJS
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# additional frameworks to link on on OS X
|
# additional frameworks to link on on OS X
|
||||||
LDOPTS_OSX += -framework CoreFoundation -framework IOKit
|
LDOPTS_OSX = -framework CoreFoundation -framework IOKit
|
||||||
|
|
||||||
LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \
|
LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \
|
||||||
ipodio-posix.c ipodio-win32-scsi.c ipodio-win32.c
|
ipodio-posix.c ipodio-win32-scsi.c ipodio-win32.c
|
||||||
|
|
|
@ -27,6 +27,8 @@ APPVERSION ?= $(shell $(TOP)/../tools/version.sh $(TOP)/..)
|
||||||
CFLAGS += -DVERSION=\""$(APPVERSION)"\"
|
CFLAGS += -DVERSION=\""$(APPVERSION)"\"
|
||||||
TARGET_DIR ?= $(abspath .)/
|
TARGET_DIR ?= $(abspath .)/
|
||||||
|
|
||||||
|
NATIVECC = gcc
|
||||||
|
CC = gcc
|
||||||
CPPDEFINES=$(shell echo foo | $(CROSS)$(CC) -dM -E -)
|
CPPDEFINES=$(shell echo foo | $(CROSS)$(CC) -dM -E -)
|
||||||
# use POSIX/C99 printf on windows
|
# use POSIX/C99 printf on windows
|
||||||
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
|
CFLAGS += -D__USE_MINGW_ANSI_STDIO=1
|
||||||
|
@ -44,7 +46,7 @@ COMPILETARGET = mingw
|
||||||
else
|
else
|
||||||
ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
|
ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
|
||||||
COMPILETARGET = darwin
|
COMPILETARGET = darwin
|
||||||
LDOPTS += $(LDFLAGS_OSX)
|
LDOPTS += $(LDOPTS_OSX)
|
||||||
else
|
else
|
||||||
COMPILETARGET = posix
|
COMPILETARGET = posix
|
||||||
endif
|
endif
|
||||||
|
@ -52,8 +54,6 @@ endif
|
||||||
endif
|
endif
|
||||||
$(info Compiler creates $(COMPILETARGET) binaries)
|
$(info Compiler creates $(COMPILETARGET) binaries)
|
||||||
|
|
||||||
NATIVECC ?= gcc
|
|
||||||
CC ?= gcc
|
|
||||||
# OS X specifics. Needs to consider cross compiling for Windows.
|
# OS X specifics. Needs to consider cross compiling for Windows.
|
||||||
ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
|
ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
|
||||||
# when building libs for OS X build for both i386 and ppc at the same time.
|
# when building libs for OS X build for both i386 and ppc at the same time.
|
||||||
|
@ -62,9 +62,9 @@ ifeq ($(findstring APPLE,$(CPPDEFINES)),APPLE)
|
||||||
CFLAGS += -arch ppc -arch i386
|
CFLAGS += -arch ppc -arch i386
|
||||||
# building against SDK 10.4 is not compatible with gcc-4.2 (default on newer Xcode)
|
# building against SDK 10.4 is not compatible with gcc-4.2 (default on newer Xcode)
|
||||||
# might need adjustment for older Xcode.
|
# might need adjustment for older Xcode.
|
||||||
CC ?= gcc-4.0
|
CC = gcc-4.0
|
||||||
CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
|
CFLAGS += -isysroot /Developer/SDKs/MacOSX10.4u.sdk -mmacosx-version-min=10.4
|
||||||
NATIVECC ?= gcc-4.0
|
NATIVECC = gcc-4.0
|
||||||
endif
|
endif
|
||||||
WINDRES = windres
|
WINDRES = windres
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue