diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-21 20:32:02 +0200 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2012-09-21 20:32:02 +0200 |
commit | 35230b5fd1b96898d51372f92142e28bae13fb73 (patch) | |
tree | 3eed86ed4160eb7e7eaf36bb295bd4a770db90db | |
parent | 4afa0d0cf6958a4803634e10e926bf132db0f058 (diff) | |
download | osc-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-- | Makefile | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |