Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
70 user(s) are online (56 user(s) are browsing Forums)

Members: 0
Guests: 70

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: SDL1 open issues

Subject: Re: SDL1 open issues
by kas1e on 2019/9/10 6:49:52

@Capehill
Found some issue with makefile.amigaos4 which you may want to change:

1). CFLAGS = -ggdb -O2 -Wall

So it should be for first -gstabs for debug build, and for second, it should't be in CFLAGS, or it always in, even with release mode, which make library be much fatter.

2). -gstabs should be added only when we build debug mode

In other words right block at top of makefile should be like this:

SHELL    = /bin/sh
CC      
ppc-amigaos-gcc
INCLUDE = -I./include
CFLAGS  = -O2 -Wall
LDFLAGS 

AR    ppc-amigaos-ar
RANLIB    
ppc-amigaos-ranlib
PIC_CFLAGS 
= -fPIC -DPIC
#DEBUG_CFLAGS = -gstabs -DDEBUG
DEBUG_CFLAGS =


I.e. when one want debug build, he uncomment that string, and have and debug output from sdl, and -gstabs for stack traces , etc. And when one want release mode, then it builds without eveyrthing to speed things up and to remove debug alltogether.

With that, we have just 500kb of size of static libSDL.a in release mode, instead of almost 4mb in debug mode.

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project