48 lines
1.5 KiB
Text
48 lines
1.5 KiB
Text
--- cf/FreeBSD.cf.orig Tue Jan 14 21:52:12 2003
|
|
+++ cf/FreeBSD.cf Fri Feb 6 12:27:55 2004
|
|
@@ -89,14 +89,14 @@
|
|
# endif
|
|
# define HasPosixThreads YES
|
|
# define ThreadedX YES
|
|
-# define SystemMTDefines -D_REENTRANT -D_THREAD_SAFE
|
|
+# define SystemMTDefines %%PTHREAD_CFLAGS%%
|
|
/*
|
|
* FreeBSD has tread-safe api but no getpwnam_r yet.
|
|
*/
|
|
# define HasThreadSafeAPI YES
|
|
# define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI
|
|
# if HasLibPthread
|
|
-# define ThreadsLibraries -lpthread
|
|
+# define ThreadsLibraries %%PTHREAD_LIBS%%
|
|
# else
|
|
# if OSRelVersion >= 500043
|
|
# define BuildThreadStubLibrary NO
|
|
@@ -106,9 +106,9 @@
|
|
# define NeedUIThrStubs YES
|
|
# endif
|
|
# if (OSRelVersion >= 500016)
|
|
-# define ThreadsLibraries -lc_r
|
|
+# define ThreadsLibraries %%PTHREAD_LIBS%%
|
|
# else
|
|
-# define ThreadsLibraries -pthread
|
|
+# define ThreadsLibraries %%PTHREAD_LIBS%%
|
|
# endif
|
|
# define SharedX11Reqs $(LDPRELIB) $(XTHRSTUBLIB)
|
|
# define SharedXtReqs $(LDPRELIB) $(XLIBONLY) $(SMLIB) $(ICELIB) $(XTHRSTUBLIB)
|
|
@@ -485,14 +485,14 @@
|
|
/* The GCC strength-reduce bug is fixed for FreeBSD 2.1.5 and later */
|
|
#ifndef DefaultGcc2i386Opt
|
|
#if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 1) || (OSMajorVersion == 2 && OSMinorVersion == 1 && OSTeenyVersion >= 5)
|
|
-#define DefaultGcc2i386Opt -O2
|
|
+#define DefaultGcc2i386Opt
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef i386Architecture
|
|
# define OptimizedCDebugFlags DefaultGcc2i386Opt
|
|
#else
|
|
-# define OptimizedCDebugFlags -O
|
|
+# define OptimizedCDebugFlags
|
|
#endif
|
|
|
|
#ifndef PreIncDir
|