From 35230b5fd1b96898d51372f92142e28bae13fb73 Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Fri, 21 Sep 2012 20:32:02 +0200 Subject: avoid linking against libstdc++ which is not used anyway instead link against libsupc++, defining only the bare minimum (even that could be avoided by manually defining new/delete and switching off some C++ features) --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 30fa973..bd614d4 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ PREFIX := /usr/local -CXX := g++ CC := gcc +CXX := g++ SDL_CFLAGS := $(shell sdl-config --cflags) SDL_LDFLAGS := $(shell sdl-config --libs) @@ -23,14 +23,14 @@ CFLAGS += -Wall \ $(SDL_CFLAGS) $(SDL_IMAGE_CFLAGS) $(SDL_GFX_CFLAGS) \ $(LIBVLC_CFLAGS) $(LIBLO_CFLAGS) CXXFLAGS := $(CFLAGS) -LDFLAGS := -lm \ +LDFLAGS := -lm -lsupc++ \ $(SDL_LDFLAGS) $(SDL_IMAGE_LDFLAGS) $(SDL_GFX_LDFLAGS) \ $(LIBVLC_LDFLAGS) $(LIBLO_LDFLAGS) all : osc-graphics osc-graphics : main.o layer.o layer_box.o layer_image.o layer_video.o - $(CXX) $(LDFLAGS) $^ -o $@ + $(CC) $^ $(LDFLAGS) -o $@ install : all cp osc-graphics $(PREFIX)/bin -- cgit v1.2.3