summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel.C6
-rw-r--r--kernel.c4
-rw-r--r--makefile6
3 files changed, 10 insertions, 6 deletions
diff --git a/kernel.C b/kernel.C
new file mode 100644
index 000000000..2ea0d2fbc
--- /dev/null
+++ b/kernel.C
@@ -0,0 +1,6 @@
+int main()
+{
+ while(1);
+
+ return 0;
+}
diff --git a/kernel.c b/kernel.c
deleted file mode 100644
index e0e2e3e8d..000000000
--- a/kernel.c
+++ /dev/null
@@ -1,4 +0,0 @@
-void main()
-{
- while(1);
-}
diff --git a/makefile b/makefile
index a40238991..7020c5aac 100644
--- a/makefile
+++ b/makefile
@@ -1,8 +1,10 @@
CC = powerpc64-unknown-linux-gnu-gcc
+CXX = powerpc64-unknown-linux-gnu-g++
LD = powerpc64-unknown-linux-gnu-ld
-COMMONFLAGS = -O3 -nostdlib
-CFLAGS = ${COMMONFLAGS} -mcpu=620
+COMMONFLAGS = -O3 -nostdlib
+CFLAGS = ${COMMONFLAGS} -mcpu=620 -fno-rtti -fno-exceptions
+CXXFLAGS = ${CFLAGS}
LDFLAGS = -static ${COMMONFLAGS}
OBJECTS = start.o kernel.o
OpenPOWER on IntegriCloud