From 9126d5d47b80310a767b861fe8f1221aabd1a52a Mon Sep 17 00:00:00 2001 From: Francois Fleuret Date: Thu, 5 Jan 2012 08:58:47 +0100 Subject: [PATCH] Added -fPIC for the amd64 architecture. --- Makefile | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0f7540c..232fe63 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ ifeq ($(DEBUG),yes) else # Optimized compilation # CXXFLAGS = -Wall -g -O3 -pg --coverage - CXXFLAGS = -Wall -g -O3 + CXXFLAGS = -fPIC -Wall -g -O3 endif LDFLAGS = -L/usr/X11R6/lib/ @@ -28,7 +28,7 @@ LDFLAGS = -L/usr/X11R6/lib/ TASK_SRC = dummy.cc move_square.cc hit_shape.cc TASK_OBJ = $(TASK_SRC:.cc=.task) -all: mash main TAGS $(TASK_OBJ) +all: main TAGS $(TASK_OBJ) TAGS: *.cc *.h etags *.cc *.h @@ -46,9 +46,6 @@ main: main.o misc.o \ intelligence.o $(CXX) -lX11 $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -mash: misc.o universe.o polygon.o xfig_tracer.o mash.o - $(CXX) -lX11 $(CXXFLAGS) -o $@ $^ $(LDFLAGS) - %.task: %.cc misc.o universe.o polygon.o xfig_tracer.o map.o task.o manipulator.o $(CXX) $(CXXFLAGS) -shared -Wl,-soname,$@ -o $@ $^ -- 2.39.5