diff options
author | Ziemowit Laski <zlaski@apple.com> | 2004-06-02 19:48:49 +0000 |
---|---|---|
committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2004-06-02 19:48:49 +0000 |
commit | 12ba3f8f9a0118440b5f6d75a6fe15d05399442d (patch) | |
tree | 58eb5ead1184375ad4552d86a93b1981270152ed /gcc | |
parent | 3aeb3655cf89356c86726d49316dcb957859971f (diff) | |
download | gcc-12ba3f8f9a0118440b5f6d75a6fe15d05399442d.zip gcc-12ba3f8f9a0118440b5f6d75a6fe15d05399442d.tar.gz gcc-12ba3f8f9a0118440b5f6d75a6fe15d05399442d.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/lib/objc.exp | 9 |
2 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index da095bf..1bf6dd4 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +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> * gcc.c-torture/compile/20040602-1.c: New. diff --git a/gcc/testsuite/lib/objc.exp b/gcc/testsuite/lib/objc.exp index 1b6c10d..d75f6f5 100644 --- a/gcc/testsuite/lib/objc.exp +++ b/gcc/testsuite/lib/objc.exp @@ -144,6 +144,7 @@ proc objc_target_compile { source dest type options } { global TOOL_OPTIONS global ld_library_path global objc_libgcc_s_path + global target_triplet set ld_library_path ".:${objc_libgcc_s_path}" lappend options "libs=-lobjc" @@ -182,6 +183,14 @@ proc objc_target_compile { source dest type options } { lappend options "additional_flags=${objc_link_flags}" 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" # On IRIX 6, we have to set variables akin to LD_LIBRARY_PATH, but |