cd upstream/darwin-linker/src/; mkdir macosx-include; cd macosx-include; ../../links.sh
make -C upstream/darwin-linker/src/cctools/libstuff
make -C upstream/darwin-linker/src/cctools/misc
+ make -C upstream/darwin-linker/src/cctools/misc libtool.NEW
make -C upstream/darwin-linker/src/cctools/ld; true
make -C upstream/darwin-linker/src/cctools/as
make -C upstream/darwin-linker/src/cctools/ar
mkdir -p upstream/install/powerpc-apple-darwin/bin
cp upstream/darwin-linker/src/cctools/ld/ld_dir/ld.NEW upstream/install/powerpc-apple-darwin/bin/ld.NEW
- echo -e "#!/bin/sh\n"`pwd`/upstream/install/powerpc-apple-darwin/bin/ld.NEW -dylib_file /usr/lib/system/libmathCommon.A.dylib:`pwd`/xwt/upstream/install/powerpc-apple-darwin/lib/libmathCommon.A.dylib -Z -L`pwd`/upstream/install/powerpc-apple-darwin/lib $$@ > upstream/install/powerpc-apple-darwin/bin/ld
+ echo -e "#!/bin/sh\n"`pwd`"/upstream/install/powerpc-apple-darwin/bin/ld.NEW -dylib_file /usr/lib/system/libmathCommon.A.dylib:"`pwd`"/upstream/install/powerpc-apple-darwin/lib/libmathCommon.A.dylib -Z -L"`pwd`"/upstream/install/powerpc-apple-darwin/lib $$@\n" > upstream/install/powerpc-apple-darwin/bin/ld
chmod +x upstream/install/powerpc-apple-darwin/bin/ld
+ chmod +x upstream/install/powerpc-apple-darwin/bin/ranlib
+ cp upstream/darwin-linker/src/cctools/misc/libtool.NEW upstream/install/powerpc-apple-darwin/bin/ranlib
cp upstream/darwin-linker/src/cctools/misc/strip.NEW upstream/install/powerpc-apple-darwin/bin/strip
cp upstream/darwin-linker/src/cctools/as/appc_dir/as upstream/install/powerpc-apple-darwin/bin/as
cp upstream/darwin-linker/src/cctools/ar/ar.NEW upstream/install/powerpc-apple-darwin/bin/ar
mkdir -p upstream/install/bin
- cd upstream/install/bin; ln -s ../powerpc-apple-darwin/bin/ld powerpc-apple-darwin-ld
- cd upstream/install/bin; ln -s ../powerpc-apple-darwin/bin/as powerpc-apple-darwin-as
- cd upstream/install/bin; ln -s ../powerpc-apple-darwin/bin/ar powerpc-apple-darwin-ar
- cd upstream/install/bin; ln -s ../powerpc-apple-darwin/bin/strip powerpc-apple-darwin-strip
+ cd upstream/install/bin; ln -sf ../powerpc-apple-darwin/bin/ld powerpc-apple-darwin-ld
+ cd upstream/install/bin; ln -sf ../powerpc-apple-darwin/bin/as powerpc-apple-darwin-as
+ cd upstream/install/bin; ln -sf ../powerpc-apple-darwin/bin/ar powerpc-apple-darwin-ar
+ cd upstream/install/bin; ln -sf ../powerpc-apple-darwin/bin/ranlib powerpc-apple-darwin-ranlib
+ cd upstream/install/bin; ln -sf ../powerpc-apple-darwin/bin/strip powerpc-apple-darwin-strip
echo -e "#!/bin/sh\nc++filt $$@\n" > upstream/install/bin/c++filt3; chmod +x upstream/install/bin/c++filt3
touch $@
+ return KERN_SUCCESS;
+}
--- ar/archive.c 30 Apr 2002 07:37:17 -0000 1.1.1.1
-+++ ar/archive.c 8 Sep 2003 00:44:40 -0000
++++ ar/archive.c 8 Sep 2003 01:51:24 -0000
@@ -69,6 +69,7 @@
#include <sys/param.h>
#include <ar.h>
#include <dirent.h>
-@@ -262,27 +263,37 @@
+@@ -86,7 +87,7 @@
+ #include "extern.h"
+
+ typedef struct ar_hdr HDR;
+-static char hb[sizeof(HDR) + 1]; /* real header */
++static char hb[61]; /* real header */
+
+ int
+ open_archive(mode)
+@@ -262,30 +263,40 @@
*/
lname = strlen(name);
if (options & AR_TR) {
(void)fflush(stderr);
}
- (void)sprintf(hb, HDR3, name, (long int)sb->st_mtimespec.tv_sec,
-+ strncpy(buf, name, 15);
++ strncpy(buf, name, 15);
+ (void)sprintf(hb, HDR3, buf, (long int)sb->st_mtime,
(unsigned int)(u_short)sb->st_uid,
(unsigned int)(u_short)sb->st_gid,
- sb->st_mode, sb->st_size, ARFMAG);
+- sb->st_mode, sb->st_size, ARFMAG);
++ sb->st_mode, (long long)sb->st_size, ARFMAG);
lname = 0;
- } else if (lname > sizeof(hdr->ar_name) || strchr(name, ' '))
+- } else if (lname > sizeof(hdr->ar_name) || strchr(name, ' '))
++ } else if (lname > sizeof(hdr->ar_name) || strchr(name, ' ')) {
(void)sprintf(hb, HDR1, AR_EFMT1, (lname + 3) & ~3,
- (long int)sb->st_mtimespec.tv_sec,
+ (long int)sb->st_mtime,
(unsigned int)(u_short)sb->st_uid,
(unsigned int)(u_short)sb->st_gid,
- sb->st_mode, sb->st_size + ((lname + 3) & ~3),
+- sb->st_mode, sb->st_size + ((lname + 3) & ~3),
++ sb->st_mode, (long long)(sb->st_size + ((lname + 3) & ~3)),
ARFMAG);
- else {
+- else {
++} else {
+ char buf[17];
+ int i;
+ for(i=0; i<16; i++) buf[i] = ' ';
+ (void)sprintf(hb, HDR2, buf, (long int)sb->st_mtime,
(unsigned int)(u_short)sb->st_uid,
(unsigned int)(u_short)sb->st_gid,
- sb->st_mode, sb->st_size, ARFMAG);
+- sb->st_mode, sb->st_size, ARFMAG);
++ sb->st_mode, (long long)sb->st_size, ARFMAG);
+ }
+ size = sb->st_size;
+ } else {
+--- misc/libtool.c Wed Apr 23 15:44:51 2003
++++ misc/libtool.c Sun Sep 7 18:58:16 2003
+@@ -2177,14 +2177,15 @@
+
+ strcpy(message_buf, message);
+ strcat(message_buf, arch_name);
+-
++ /*
+ make_alert(ProjectBuilder_port,
+ -1,
+- NULL, 0, /* functionName, not used by ProjectBuilder */
++ NULL, 0,
+ fileName, strlen(fileName)+1 > 1024 ? 1024 : strlen(fileName)+1,
+ NULL, 0,
+ 0,
+ message_buf, strlen(message_buf) + 1);
++*/
+ }
+
+ /*