site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=M75ezp5Cx+PQga1mQdASHsfFyFVIGH42wDomsnud41tzLUwz+9TjiyVgD27bDrut6kqYchdDqq+LN3fPCiM/Fvtg2L/bJ02GK5B808H2uyWrL0Auwdz/k7BAiqsjSzBX5bNp50IpNoVlHrjxluC2aEZOulmXVN3kwLdeGi20I+k= Domainkey-signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hjHdB0+FEl3osczOQ7k0L7TzZm8GBW/N3eF/wGf5dDrHu49GvbURZriBCVBwbbZ49txLbDZY5hw/Bb7ooyb6B1vS8Rt/NbPkGJF1Ey5zkr/Chwtsz2Hj2lgQ31vzodoRGKOa3ZAQVwW0D8KfVlV6uBcuftAB54ha9advJey9pW8= On 6/11/07, mal content <artifact.one@googlemail.com> wrote:
t.dylib: t.h t1.o t2.o t3.o libtool -dynamic -o t.dylib t1.o t2.o t3.o -lSystemStubs -lc Just do: gcc -dynamiclib -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk t1.o t2.o t3.o Instead of invoking libtool directly. Thanks, Andrew Pinski
Hello. Thanks for the quick reply. I ran that exact command but the resulting library wasn't usable (strange linker errors when trying to link a program with the library). Running otool on the file shows: $ otool -L t.dylib t.dylib: /var/tmp//cc6PeQdg.out (compatibility version 0.0.0, current version 0.0.0) /var/tmp//ccLx3yTF.out (compatibility version 0.0.0, current version 0.0.0) /var/tmp//ccNA71ae.out (compatibility version 0.0.0, current version 0.0.0) /var/tmp//ccz9o0Bo.out (compatibility version 0.0.0, current version 0.0.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.3) The complete command pipeline that the compiler ran was: cc -v -dynamiclib -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk -o t.dylib t1.o t2.o t3.o Using built-in specs. Target: powerpc-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8 Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5367) Using built-in specs. /usr/bin/libtool -dynamic -arch_only ppc -noall_load -syslibroot /Developer/SDKs/MacOSX10.4u.sdk -weak_reference_mismatches non-weak -o /var/tmp//ccb9c00K.out -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1 -L/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../.. t1.o t2.o t3.o -final_output t.dylib -lgcc -lSystemStubs -lSystem Target: i686-apple-darwin8 Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --enable-werror-always --with-arch=nocona --with-tune=generic --program-prefix=i686-apple-darwin8- --host=powerpc-apple-darwin8 --target=i686-apple-darwin8 Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5367) /usr/bin/libtool -dynamic -arch_only i386 -noall_load -syslibroot /Developer/SDKs/MacOSX10.4u.sdk -weak_reference_mismatches non-weak -o /var/tmp//cc25nNpR.out -L/usr/lib/gcc/i686-apple-darwin8/4.0.1 -L/usr/lib/gcc/i686-apple-darwin8/4.0.1 -L/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../.. t1.o t2.o t3.o -final_output t.dylib -lgcc -lSystem lipo -create -o t.dylib /var/tmp//cc25nNpR.out /var/tmp//ccb9c00K.out Any idea what I can do about this? MC _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... On 11/06/07, Andrew Pinski <pinskia@gmail.com> wrote: This email sent to site_archiver@lists.apple.com