summaryrefslogtreecommitdiff
path: root/macho64/make.sh
diff options
context:
space:
mode:
authorJohn van Groningen2013-10-17 12:47:49 +0000
committerJohn van Groningen2013-10-17 12:47:49 +0000
commit910de4c084bb52f6336d7acffc5e28ac4b2c1307 (patch)
treebe901c68f94d91c947355b8631df1e395fa5b97f /macho64/make.sh
parentdon'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
Diffstat (limited to 'macho64/make.sh')
-rwxr-xr-xmacho64/make.sh8
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