visopsys.org

Visopsys Forums
It is currently Thu Sep 21, 2017 4:16 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [HOW TO] Building Visopsys under 64bit OS
PostPosted: Fri Dec 20, 2013 1:25 pm 
Offline
User avatar

Joined: Fri Jul 22, 2011 3:53 pm
Posts: 45
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group