diff options
author | John van Groningen | 2013-10-17 12:47:49 +0000 |
---|---|---|
committer | John van Groningen | 2013-10-17 12:47:49 +0000 |
commit | 910de4c084bb52f6336d7acffc5e28ac4b2c1307 (patch) | |
tree | be901c68f94d91c947355b8631df1e395fa5b97f | |
parent | don't use long instead of extern long to define some global variables (diff) |
create static libraries (using libtool), instead of object files (using ld),
to work around a bug in ld for MacOSX 10.7 and 10.8, that forgets to export some symbols defined in areals.s
-rwxr-xr-x | macho64/make.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/macho64/make.sh b/macho64/make.sh index ad9c0db..193bc5c 100755 --- a/macho64/make.sh +++ b/macho64/make.sh @@ -3,5 +3,9 @@ as startupTrace.s -o startupTrace.o (cd ..; cc -c -O -DI486 -DMACH_O64 scon.c) (cd ..; cc -c -O -DUSE_CLIB -DLINUX -DI486 -DGNU_C -DMACH_O64 -o macho64/ufileIO2.o ./ufileIO2.c) as afileIO3.s -o afileIO3.o -ld -r startup.o ../scon.o afileIO3.o ufileIO2.o -o _startup.o -ld -r startupTrace.o ../scon.o afileIO3.o ufileIO2.o -o _startupTrace.o +# Because of a bug in ld, the following does not work anymore (MacOSX 10.7 and 10.8) +# ld -r startup.o ../scon.o afileIO3.o ufileIO2.o -o _startup.o +libtool -static -o _startup.o startup.o ../scon.o afileIO3.o ufileIO2.o +# Because of a bug in ld, the following does not work anymore (MacOSX 10.7 and 10.8) +# ld -r startupTrace.o ../scon.o afileIO3.o ufileIO2.o -o _startupTrace.o +libtool -static -o _startupTrace.o ../scon.o afileIO3.o ufileIO2.o |