summaryrefslogtreecommitdiffstats
path: root/macosx/module.defs
diff options
context:
space:
mode:
Diffstat (limited to 'macosx/module.defs')
-rw-r--r--macosx/module.defs6
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/module.defs b/macosx/module.defs
index ff1dff762..1870d5fe9 100644
--- a/macosx/module.defs
+++ b/macosx/module.defs
@@ -25,6 +25,10 @@ MACOSX.map.g.min = debug
MACOSX.map.g.std = debug
MACOSX.map.g.max = debug
+ifeq (1,$(FEATURE.fdk_aac))
+MACOSX.extra_ldflags = OTHER_LDFLAGS='$(abspath $(BUILD))/contrib/lib/libfdk-aac.a'
+endif
+
## xcconfig: must be one of macosx/xcconfig/*.xcconfig
MACOSX.xcconfig = $(foreach x,$(XCODE.xcconfig),-xcconfig $(MACOSX.src/)xcconfig/$(x))
MACOSX.sdk = $(foreach sdk,$(GCC.sysroot),-sdk $(sdk))
@@ -54,4 +58,6 @@ MACOSX.XCODE = $(strip \
EXTERNAL_JOBS='$(BUILD.jobs)' \
EXTERNAL_VARS='$(-*-command-variables-*-)' \
\
+ $(MACOSX.extra_ldflags) \
+ \
$(2) )