summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2009-02-28 16:21:41 +0100
committerAndreas Baumann <abaumann@yahoo.com>2009-02-28 16:21:41 +0100
commit2529b80bb4fa77cbc545d320063c397241e75757 (patch)
treeedd06fb0f96907c8539445a9a2563b4fddf16bec
parent94e643e4b06c66f01e7ddaab9215b5e78413adad (diff)
downloadwolfbones-2529b80bb4fa77cbc545d320063c397241e75757.tar.gz
wolfbones-2529b80bb4fa77cbc545d320063c397241e75757.tar.bz2
localtime_r and threading with sun c compiler, solaris 10
-rw-r--r--docs/port/README11
-rw-r--r--makefiles/gmake/depend.mk4
2 files changed, 13 insertions, 2 deletions
diff --git a/docs/port/README b/docs/port/README
index 4908025..e6820db 100644
--- a/docs/port/README
+++ b/docs/port/README
@@ -38,6 +38,15 @@ Currently there are the following definitions which must be set:
includes <string.h>, but on some systems like Solaris 8 or also Linux
they declare the prototypes for str(n)casecmp and some other BSDish
string functions
+- HAVE_LOCALTIME_R: whether we have a reentrant localtime function
+- HAVE_PTHREADS: whether the system has POSIX thread support
+
+Defines in 'port/sys_internal.h'
+--------------------------------
+
+Locically exactly the same, but for portibility issues we don't want to
+expose to normal user code, e.g. internally used functions which expose
+a different interface in libwolf.
Currently tested on:
--------------------
@@ -48,6 +57,8 @@ Currently tested on:
- x86 NetBSD 4.0
- x86 Solaris 10
- SPARC Solaris 8
+- x86 Cygwin 5.0
+- native Windows W32 API, Windows 2000
How to use the porting layer in your code
-----------------------------------------
diff --git a/makefiles/gmake/depend.mk b/makefiles/gmake/depend.mk
index 6f9ff02..f803a56 100644
--- a/makefiles/gmake/depend.mk
+++ b/makefiles/gmake/depend.mk
@@ -52,11 +52,11 @@ ifeq "$(COMPILER)" "spro"
%.d : %.c
@echo Generating dependencies for $<
- @$(CC) -DMAKE_DEPENDENCIES -xM1 $(INCLUDE_DIRS) $< > $@
+ @$(CC) -DMAKE_DEPENDENCIES -xM1 $(CFLAGS) $< > $@
%.d : %.cpp
@echo Generating dependencies for $<
- @$(CCPP) -DMAKE_DEPENDENCIES -xM1 $(INCLUDE_DIRS) $< > $@
+ @$(CCPP) -DMAKE_DEPENDENCIES -xM1 $(CCPPFLAGS) $< > $@
endif
-include $(OBJS:.o=.d)