Add linker flags for the Objective-C compilation mode.

Fixes Araq/Nim#2153.
This commit is contained in:
Philip Wernersbach
2015-03-15 19:08:58 -04:00
parent 747653911c
commit 5be4e7b9f0

View File

@@ -112,6 +112,22 @@ path="$lib/pure/unidecode"
gcc.cpp.options.always = "-w -fpermissive"
@end
# Configuration for Objective-C compiler:
#
# Options for GNUStep. GNUStep configuration varies wildly, so you'll probably
# have to add additional compiler and linker flags on a per-project basis.
gcc.objc.options.linker = "-lobjc -lgnustep-base"
llvm_gcc.objc.options.linker = "-lobjc -lgnustep-base"
clang.objc.options.linker = "-lobjc -lgnustep-base"
# Options for Mac OS X. Mac OS X uses its own Objective-C stack that is
# totally different from GNUStep.
@if macosx:
gcc.objc.options.linker = "-framework Foundation"
llvm_gcc.objc.options.linker = "-framework Foundation"
clang.objc.options.linker = "-framework Foundation"
@end
# Configuration for the VxWorks
# This has been tested with VxWorks 6.9 only
@if vxworks: