Skip to content
Browse files

everybody use the same DFLAGS. also always emit debug symbols and rep…

…lace executable copies with strip
  • Loading branch information...
1 parent 2c2995e commit aff63417707a47f61af4c14ed63d660646d4b523 @wolfwood wolfwood committed
Showing with 7 additions and 9 deletions.
  1. +2 −2 app/build/build.sh
  2. +1 −1 app/c/hello/Makefile
  3. +1 −2 app/c/simplymm/Makefile
  4. +1 −1 build.sh
  5. +1 −2 runtimes/mindrt/Makefile
  6. +1 −1 user/c/Makefile
View
4 app/build/build.sh
@@ -1,6 +1,6 @@
# --- Define Vars ---
DC=ldc
-DFLAGS="-nodefaultlib -code-model=large -I${ROOT} -I${ROOT}/runtimes/mindrt -I${ROOT}/runtimes -J${ROOT}/build/root -mattr=-sse -m64 -O2 -release"
+DFLAGS="-nodefaultlib -code-model=large -I${ROOT} -I${ROOT}/runtimes/mindrt -I${ROOT}/runtimes -J${ROOT}/build/root -mattr=-sse -m64 -O2 -release -g"
# if not defined, provide defau;lt name for ROOT_FILE based on TARGET
if [ -z "${ROOT_FILE}" ]; then
@@ -30,7 +30,7 @@ ld -nostdlib -nodefaultlibs -T${ROOT}/app/build/elf.ld -o ${TARGET} `ls objs/*.o
echo
echo Copying
-cp ${TARGET} ../../../build/root/binaries/
+strip -s ${TARGET} -o ../../../build/root/binaries/${TARGET}
echo
echo Creating App Symbol File
View
2 app/c/hello/Makefile
@@ -2,4 +2,4 @@
#LDFLAGS=-L../../../user/c/lib -L../../../runtimes/mindrt -l:drt0.a -l:syscall.a -l:mindrt.a
all:
x86_64-pc-xomb-gcc -T../../build/elf.ld -o chel -static hello.c ${LDFLAGS}
- cp chel ../../../build/root/binaries
+ strip -s chel -o ../../../build/root/binaries/chel
View
3 app/c/simplymm/Makefile
@@ -3,8 +3,7 @@ CC = x86_64-pc-xomb-gcc
all: clean
$(CC) -O2 -T../../build/elf.ld -o simplymm -static simplymm.c ${LDFLAGS}
- cp simplymm ../../../build/root/binaries/.
+ strip -s simplymm -o ../../../build/root/binaries/simplymm
clean:
rm -f simplymm.o simplymm
-
View
2 build.sh
@@ -52,7 +52,7 @@ cd ../../..
cd build
-./clean
+./veryclean
./build || exit
bochs -q
View
3 runtimes/mindrt/Makefile
@@ -1,4 +1,4 @@
-DFLAGS = -I../. -I../../. -O2 -release
+DFLAGS = -I../. -I../../. -mattr=-sse -m64 -O2 -release -g
drt0.a: entry.d mindrt.a libd.a
yasm -g stabs -felf64 entry.S -o dsss_objs/O/runtime.Sentry.o
@@ -78,4 +78,3 @@ mindrt.a: object.d dinvariant.d dstubs.d util.d dstatic.d error.d exception.d
ldc -nodefaultlib ${DFLAGS} -c typeinfo/ti_void.d -ofdsss_objs/G/runtime.std.typeinfo.ti_void.o;
ldc -nodefaultlib ${DFLAGS} -c typeinfo/ti_wchar.d -ofdsss_objs/G/runtime.std.typeinfo.ti_wchar.o;
ar rcs mindrt.a dsss_objs/G/*.o
-
View
2 user/c/Makefile
@@ -1,4 +1,4 @@
-DFLAGS = -I ../../. -I../../runtimes/mindrt -I../../runtimes -O2 -oq -odobjs
+DFLAGS = -I ../../. -I../../runtimes/mindrt -I../../runtimes -mattr=-sse -m64 -O2 -release -g -oq -odobjs
syscall.a: clean
mkdir -p objs

0 comments on commit aff6341

Please sign in to comment.
Something went wrong with that request. Please try again.