summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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))