aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-21 20:32:02 +0200
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2012-09-21 20:32:02 +0200
commit35230b5fd1b96898d51372f92142e28bae13fb73 (patch)
tree3eed86ed4160eb7e7eaf36bb295bd4a770db90db
parent4afa0d0cf6958a4803634e10e926bf132db0f058 (diff)
downloadosc-graphics-35230b5fd1b96898d51372f92142e28bae13fb73.tar.gz
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)
-rw-r--r--Makefile6
1 files 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