mirror of
https://gitlab.com/sortix/sortix.git
synced 2023-02-13 20:55:38 -05:00
Moved _start into crtbegin.o as that's where the cross compiler wants it.
This commit is contained in:
parent
d3ad36b181
commit
25d8551b26
1 changed files with 2 additions and 2 deletions
|
@ -193,10 +193,10 @@ install:
|
||||||
for F in $(CHEADERS); do F=`echo $$F | sed 's/c\/h\///g'`; mkdir -p $(SYSROOT)/usr/include/`dirname $$F`; cp c/h/$$F $(SYSROOT)/usr/include/$$F || exit $?; done
|
for F in $(CHEADERS); do F=`echo $$F | sed 's/c\/h\///g'`; mkdir -p $(SYSROOT)/usr/include/`dirname $$F`; cp c/h/$$F $(SYSROOT)/usr/include/$$F || exit $?; done
|
||||||
mkdir -p $(SYSROOT)/usr/include/libmaxsi
|
mkdir -p $(SYSROOT)/usr/include/libmaxsi
|
||||||
for F in $(MAXSIHEADERS); do cp $$F $(SYSROOT)/usr/include/libmaxsi || exit $?; done
|
for F in $(MAXSIHEADERS); do cp $$F $(SYSROOT)/usr/include/libmaxsi || exit $?; done
|
||||||
cp start.o $(SYSROOT)/usr/lib/crt1.o
|
cp start.o $(SYSROOT)/usr/lib/crtbegin.o
|
||||||
touch deleteme.cpp
|
touch deleteme.cpp
|
||||||
g++ $(CPUFLAGS) -c deleteme.cpp -o deleteme.o
|
g++ $(CPUFLAGS) -c deleteme.cpp -o deleteme.o
|
||||||
for F in crt0.o crtn.o crtbegin.o crtend.o crtbeginT.o crti.o; do cp deleteme.o $(SYSROOT)/usr/lib/$$F; done
|
for F in crt0.o crtn.o crt1.o crtend.o crtbeginT.o crti.o; do cp deleteme.o $(SYSROOT)/usr/lib/$$F; done
|
||||||
for F in libgcc.so libm.so libstdc++.so; do ld $(CPULDFLAGS) -shared deleteme.o -o $(SYSROOT)/usr/lib/$$F; done
|
for F in libgcc.so libm.so libstdc++.so; do ld $(CPULDFLAGS) -shared deleteme.o -o $(SYSROOT)/usr/lib/$$F; done
|
||||||
rm -f deleteme.o deleteme.cpp
|
rm -f deleteme.o deleteme.cpp
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue