| 53 | |
| 54 | or with libc++ (copy over from an Intel system for now where you build it with a PPC slice): |
| 55 | {{{ |
| 56 | $ clang -v -Wl,-v -lc++ -stdlib=libc++ -o helloworld helloworld.cpp |
| 57 | clang version 5.0.2 (tags/RELEASE_502/final) |
| 58 | Target: powerpc-apple-darwin9.8.0 |
| 59 | Thread model: posix |
| 60 | InstalledDir: /opt/local/libexec/llvm-5.0/bin |
| 61 | "/opt/local/libexec/llvm-5.0/bin/clang" -cc1 -triple powerpc-apple-macosx10.5.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -discard-value-names -main-file-name helloworld.cpp -mrelocation-model pic -pic-level 2 -mthread-model posix -mdisable-fp-elim -masm-verbose -munwind-tables -faligned-alloc-unavailable -mfloat-abi hard -target-linker-version 127.2 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /opt/local/libexec/llvm-5.0/lib/clang/5.0.2 -stdlib=libc++ -fdeprecated-macro -fdebug-compilation-dir /opt/local/var/macports/build/_opt_myports_devel_helloworld/helloworld/work/helloworld-9767fc3cc248797fa2df16b0f8926131aed9d6ce -ferror-limit 19 -fmessage-length 160 -femulated-tls -stack-protector 1 -fobjc-runtime=macosx-fragile-10.5.0 -fencode-extended-block-signature -fcxx-exceptions -fexceptions -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-/helloworld-a22afc.o -x c++ helloworld.cpp |
| 62 | clang -cc1 version 5.0.2 based upon LLVM 5.0.2 default target powerpc-apple-darwin9.8.0 |
| 63 | ignoring nonexistent directory "/usr/include/c++/v1" |
| 64 | ignoring nonexistent directory "/usr/local/include" |
| 65 | #include "..." search starts here: |
| 66 | #include <...> search starts here: |
| 67 | /opt/local/libexec/llvm-5.0/include/c++/v1 |
| 68 | /opt/local/libexec/llvm-5.0/lib/clang/5.0.2/include |
| 69 | /usr/include |
| 70 | /System/Library/Frameworks (framework directory) |
| 71 | /Library/Frameworks (framework directory) |
| 72 | End of search list. |
| 73 | "/opt/local/libexec/llvm-5.0/bin/ld" -demangle -dynamic -arch ppc -macosx_version_min 10.5.0 -o helloworld -lcrt1.10.5.o -v -lc++ /var/folders/zz/zzzivhrRnAmviuee+++++++++++/-Tmp-/helloworld-a22afc.o -lSystem -lgcc_s.10.5 |
| 74 | @(#)PROGRAM:ld PROJECT:ld64-127.2 |
| 75 | configured to support archs: i386 x86_64 ppc ppc64 armv6 armv7 |
| 76 | Library search paths: |
| 77 | /usr/lib |
| 78 | /usr/local/lib |
| 79 | Framework search paths: |
| 80 | /Library/Frameworks/ |
| 81 | /System/Library/Frameworks/ |
| 82 | |
| 83 | $ ./helloworld |
| 84 | Hello World! |
| 85 | |
| 86 | }}} |