summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-16 20:25:56 +0000
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2011-12-16 20:25:56 +0000
commit6c6123143faff8e0f85cba71812f1bd9cb2fdc77 (patch)
tree088c3e6bc29e6a5b6f0bbafa02b2492383fd3fef /rbutil
parent8be58fd8ec6841cf7bb2597ab0c8986bd3292b3f (diff)
downloadrockbox-6c6123143faff8e0f85cba71812f1bd9cb2fdc77.tar.gz
rockbox-6c6123143faff8e0f85cba71812f1bd9cb2fdc77.zip
ipodpatcher: move linker only options out of CFLAGS.
OS X requires some linker-only options. Remove them from CFLAGS to avoid a compiler warning. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31330 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/ipodpatcher/Makefile2
-rw-r--r--rbutil/libtools.make2
2 files changed, 2 insertions, 2 deletions
diff --git a/rbutil/ipodpatcher/Makefile b/rbutil/ipodpatcher/Makefile
index 3b7ec807a0..bae805671e 100644
--- a/rbutil/ipodpatcher/Makefile
+++ b/rbutil/ipodpatcher/Makefile
@@ -29,7 +29,7 @@ endif
ifeq ($(findstring Darwin,$(shell uname)),Darwin)
# additional frameworks to link on on OS X
-CFLAGS += -framework CoreFoundation -framework IOKit
+LDOPTS += -framework CoreFoundation -framework IOKit
endif
LIBSOURCES = ipodpatcher.c fat32format.c arc4.c \
diff --git a/rbutil/libtools.make b/rbutil/libtools.make
index 43ef3d9386..1ba0f77f72 100644
--- a/rbutil/libtools.make
+++ b/rbutil/libtools.make
@@ -82,7 +82,7 @@ $(BINARY): $(OBJS) $(EXTRADEPS) $(addprefix $(OBJDIR),$(EXTRALIBOBJS))
@echo LD $@
# $(SILENT)mkdir -p $(dir $@)
# EXTRADEPS need to be built into OBJDIR.
- $(SILENT)$(CROSS)$(CC) $(CFLAGS) -o $(BINARY) \
+ $(SILENT)$(CROSS)$(CC) $(CFLAGS) $(LDOPTS) -o $(BINARY) \
$(OBJS) $(addprefix $(OBJDIR),$(EXTRADEPS)) \
$(addprefix $(OBJDIR),$(EXTRALIBOBJS))