Commit 12ba3f8f by Ziemowit Laski Committed by Ziemowit Laski

objc.exp (objc_target_compile): When running tests on Darwin (Mac OS X)...

[gcc/testsuite/ChangeLog]
2004-06-02  Ziemowit Laski  <zlaski@apple.com>

        * lib/objc.exp (objc_target_compile): When running tests on
        Darwin (Mac OS X), inform the linker about '-framework
        'Foundation'.

From-SVN: r82578
parent 3aeb3655
2004-06-02 Ziemowit Laski <zlaski@apple.com>
* lib/objc.exp (objc_target_compile): When running tests on
Darwin (Mac OS X), inform the linker about '-framework
'Foundation'.
2004-06-02 Eric Christopher <echristo@redhat.com> 2004-06-02 Eric Christopher <echristo@redhat.com>
* gcc.c-torture/compile/20040602-1.c: New. * gcc.c-torture/compile/20040602-1.c: New.
......
...@@ -144,6 +144,7 @@ proc objc_target_compile { source dest type options } { ...@@ -144,6 +144,7 @@ proc objc_target_compile { source dest type options } {
global TOOL_OPTIONS global TOOL_OPTIONS
global ld_library_path global ld_library_path
global objc_libgcc_s_path global objc_libgcc_s_path
global target_triplet
set ld_library_path ".:${objc_libgcc_s_path}" set ld_library_path ".:${objc_libgcc_s_path}"
lappend options "libs=-lobjc" lappend options "libs=-lobjc"
...@@ -182,6 +183,14 @@ proc objc_target_compile { source dest type options } { ...@@ -182,6 +183,14 @@ proc objc_target_compile { source dest type options } {
lappend options "additional_flags=${objc_link_flags}" lappend options "additional_flags=${objc_link_flags}"
append ld_library_path ":${libobjc_dir}" append ld_library_path ":${libobjc_dir}"
} }
# If we are running on Darwin, we'll need to point the linker at
# the Foundation framework, where many goodies (e.g., NSConstantString)
# reside.
if { [string match "*-*-darwin*" $target_triplet] } {
lappend options "libs=-framework Foundation"
}
lappend options "compiler=$OBJC_UNDER_TEST" lappend options "compiler=$OBJC_UNDER_TEST"
# On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment