visopsys.org
https://visopsys.org/forums/

[HOW TO] Building Visopsys under 64bit OS
https://visopsys.org/forums/viewtopic.php?f=3&t=205
Page 1 of 1

Author:  doga-1494 [ Fri Dec 20, 2013 1:25 pm ]
Post subject:  [HOW TO] Building Visopsys under 64bit OS

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:
##
##  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

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/