From cd1d6378a2b53021b0be2b17eca63d7c47931822 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 6 Jun 2010 22:02:56 +0200 Subject: fixed pcc on linux (gengetopt and generated code, __attribute__ infection of header files) --- makefiles/gmake/compiler.mk | 4 +++- makefiles/gmake/libs.mk | 9 ++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) (limited to 'makefiles') diff --git a/makefiles/gmake/compiler.mk b/makefiles/gmake/compiler.mk index aab45d2..08677a5 100644 --- a/makefiles/gmake/compiler.mk +++ b/makefiles/gmake/compiler.mk @@ -207,9 +207,11 @@ endif ifeq "$(COMPILER)" "pcc" COMPILE_FLAGS = \ - --fatal-warnings + --fatal-warnings -g endif +CCPP = pcc + # end of pcc section # set flags for threading support using POSIX threads. This is completly different diff --git a/makefiles/gmake/libs.mk b/makefiles/gmake/libs.mk index c8f77a6..cf0ad08 100644 --- a/makefiles/gmake/libs.mk +++ b/makefiles/gmake/libs.mk @@ -10,11 +10,14 @@ # ifeq "$(PLATFORM)" "LINUX" -ifeq "$(COMPILER)" "gcc" -SO_FLAGS = -shared -Wl,-soname,$(DYNAMIC_LIB).$(DYNAMIC_LIB_MAJOR) -endif ifeq "$(COMPILER)" "tcc" SO_FLAGS = -shared +else +ifeq "$(COMPILER)" "pcc" +SO_FLAGS = -shared -Wl,-soname,$(DYNAMIC_LIB).$(DYNAMIC_LIB_MAJOR) +else +SO_FLAGS = -shared -Wl,-soname,$(DYNAMIC_LIB).$(DYNAMIC_LIB_MAJOR) +endif endif endif -- cgit v1.2.3-54-g00ecf