[HOW TO] Building Visopsys under 64bit OS

General discussion about Visopsys.
Post Reply
User avatar
doga-1494
Posts: 46
Joined: Fri Jul 22, 2011 3:53 pm

[HOW TO] Building Visopsys under 64bit OS

Post by doga-1494 »

Guys, With Some Small changes in Makefile.include ..
Also i disabled some warnings inside Makefile.include as Andy said.. to compile OS in newer OSes..
I'm using gcc 4.8.1 ...

You can compile Visopsys under 64bit Ubuntu 13.10....

Here is Makefile.include you should use with 64 bit

You can see changes on " gcc -m32 ld -m elf_i386 "
We should use 32bit flags for compiling

Code: Select all

##
##  Visopsys
##  Copyright (C) 1998-2013 J. Andrew McLaughlin
## 
##  Makefile.include
##

# Top-level include file for code Makefiles.  Sets global compile options.

NASM		= nasm
CC		= gcc -m32
CC++		= g++
AR		= ar
LD		= ld -m elf_i386
OPT		= -Os
ARCH		= -march=pentium
CODEGEN		= -pipe -fno-common -fno-strict-aliasing -fno-builtin \
		-fno-omit-frame-pointer -fno-asynchronous-unwind-tables \
		-fno-stack-protector
CCODEGEN	= ${CODEGEN} -ffreestanding
C++CODEGEN	= ${CODEGEN} -fno-rtti -fno-exceptions
WARN		= -Wall -W -Wshadow -Wcast-align -Wsign-compare \
		-Waggregate-return  -Wmissing-format-attribute \
		-Wredundant-decls 
CWARN		= ${WARN} -Wstrict-prototypes -Wmissing-prototypes \
		-Wmissing-declarations
C++WARN		= ${WARN}
LDFLAGS='-m32 -L/usr/lib32'

export 		NASM CC CC++ AR LD OPT ARCH CCODEGEN C++CODEGEN CWARN C++WARN LDFLAGS
Post Reply