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. --- smelt/sdl/CxImage/makefile | 2 +- smelt/sdl/CxImage/ximadef.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'smelt/sdl/CxImage') diff --git a/smelt/sdl/CxImage/makefile b/smelt/sdl/CxImage/makefile index 6dcb28b..725a62a 100644 --- a/smelt/sdl/CxImage/makefile +++ b/smelt/sdl/CxImage/makefile @@ -1,5 +1,5 @@ CC= g++ -CXXFLAGS= -c -Os -D_LINUX +CXXFLAGS= -c -Os -D_LINUX -Wall -fPIC AR= ar all: objects archive clean diff --git a/smelt/sdl/CxImage/ximadef.h b/smelt/sdl/CxImage/ximadef.h index 11af155..372ec13 100644 --- a/smelt/sdl/CxImage/ximadef.h +++ b/smelt/sdl/CxImage/ximadef.h @@ -1,4 +1,3 @@ -// -*- C++ -*- #if !defined(__ximadefs_h) #define __ximadefs_h -- cgit v1.2.3