From 038f9a5b1197b4f92c85d0c7d2cfd672589c2231 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 31 Mar 2009 13:01:30 +0200 Subject: fixed pthread flags for pcc --- makefiles/gmake/compiler.mk | 4 ++-- makefiles/gmake/depend.mk | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'makefiles') diff --git a/makefiles/gmake/compiler.mk b/makefiles/gmake/compiler.mk index 1440419..6cd4af9 100644 --- a/makefiles/gmake/compiler.mk +++ b/makefiles/gmake/compiler.mk @@ -255,9 +255,9 @@ endif ifeq "$(COMPILER)" "pcc" ifeq "$(PLATFORM)" "LINUX" -PTHREADS_CFLAGS = -D_REENTRANT +PTHREADS_CFLAGS = -D_REENTRANT -pthread PTHREADS_LDFLAGS = -PTHREADS_LIBS = -lpthread +PTHREADS_LIBS = -pthread endif endif diff --git a/makefiles/gmake/depend.mk b/makefiles/gmake/depend.mk index 8b22c2e..eb832e7 100644 --- a/makefiles/gmake/depend.mk +++ b/makefiles/gmake/depend.mk @@ -64,7 +64,7 @@ ifeq "$(COMPILER)" "pcc" # FIXME: platform in path of compiler include files, mmh, how to fix? %.d : %.c @echo Generating dependencies for $< - @makedepend -DMAKE_DEPENDENCIES $(PLATFORM_COMPILE_FLAGS) $(INCLUDE_DIRS) -I/usr/lib/pcc/i686-pc-linux-gnu/0.9.9/include -f - $< > $@ + @$(CC) -DMAKE_DEPENDENCIES $(CFLAGS) -M $< > $@ endif -- cgit v1.2.3-54-g00ecf