--- libflashsupport-1.2/Makefile.org 2010-02-08 21:30:35.000000000 +0100 +++ libflashsupport-1.2/Makefile 2010-02-08 21:34:35.000000000 +0100 @@ -1,6 +1,6 @@ #Default flags -CC=gcc -CFLAGS=-fPIC -shared -O2 -Wall -Werror +CC ?= gcc +CFLAGS += -fPIC -shared -Wall LIBS=-lpthread #Define library directory @@ -49,7 +49,7 @@ all: libflashsupport.so libflashsupport.so: flashsupport.c - $(CC) $(CFLAGS) $(LIBS) -DLIBDIR=$(LIBDIR) \ + $(CC) $(CFLAGS) $(LDFLAGS) $(LIBS) -DLIBDIR=$(LIBDIR) \ flashsupport.c -o libflashsupport.so \ $(ALSA) $(ALSALIBS) $(PULSE) $(LIBPULSEPATH) $(ESD) $(LIBESDPATH) \ $(OSS) $(SSL) $(SSLLIBS) $(V4L) $(ICULIBS)