From c2b99f6321965b2c5b30a1b72b29119281c2d7e1 Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Mon, 25 Apr 2016 23:47:43 +0800 Subject: Compile with -fPIC to allow linkage to libraries. Make several math functions static. Elimate several warnings from the compiler. --- extensions/makefile | 2 +- extensions/smgrid.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'extensions') diff --git a/extensions/makefile b/extensions/makefile index 4c6b3fe..c5f30e1 100644 --- a/extensions/makefile +++ b/extensions/makefile @@ -1,5 +1,5 @@ CC= g++ -CXXFLAGS= -c -std=c++11 -Wall -I../include -I/usr/include/freetype2 +CXXFLAGS= -c -g -std=c++11 -Wall -I../include -I/usr/include/freetype2 -fPIC all: objects archive clean diff --git a/extensions/smgrid.cpp b/extensions/smgrid.cpp index d78864f..5e00a6b 100644 --- a/extensions/smgrid.cpp +++ b/extensions/smgrid.cpp @@ -70,7 +70,7 @@ void smGrid::setBlend(int blend){quad.blend=blend;} void smGrid::setColor(int c,int r,DWORD col){if(c=0&&r>=0&&c