Fix the Linux mapster32 build with LTO enabled.

git-svn-id: https://svn.eduke32.com/eduke32@3136 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
Plagman 2012-11-09 17:35:58 +00:00
parent 7e62f10728
commit 27a39f1982
2 changed files with 4 additions and 2 deletions

View File

@ -206,7 +206,7 @@ endif
# compiler flags etc. # compiler flags etc.
BASECFLAGS= BASECFLAGS= -Wno-attributes
BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement BASECONLYFLAGS=-Wimplicit -Wdeclaration-after-statement
BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive BASECXXFLAGS= -fno-exceptions -fno-rtti -fpermissive
BASEASFLAGS=-s #-g BASEASFLAGS=-s #-g

View File

@ -415,7 +415,9 @@ EXTERN char show2dwall[(MAXWALLS+7)>>3];
EXTERN char show2dsprite[(MAXSPRITES+7)>>3]; EXTERN char show2dsprite[(MAXSPRITES+7)>>3];
//EXTERN char automapping; //EXTERN char automapping;
EXTERN char gotpic[(MAXTILES+7)>>3]; // In the editor, gotpic is only referenced from inline assembly;
// the compiler needs that hint or building with LTO will discard it.
EXTERN char ATTRIBUTE((used)) gotpic[(MAXTILES+7)>>3];
EXTERN char gotsector[(MAXSECTORS+7)>>3]; EXTERN char gotsector[(MAXSECTORS+7)>>3];
EXTERN char editorcolors[256]; EXTERN char editorcolors[256];