From dbcbc66352a720e446803f414c4e6ede85486ff9 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Thu, 27 Aug 1998 21:35:29 +0000 Subject: [PATCH] freebsd split --- build/platforms/freebsd2-gcc/Make-platform | 46 ++++++++++++++++++++++ build/platforms/freebsd3-gcc/Make-platform | 46 ++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 build/platforms/freebsd2-gcc/Make-platform create mode 100644 build/platforms/freebsd3-gcc/Make-platform diff --git a/build/platforms/freebsd2-gcc/Make-platform b/build/platforms/freebsd2-gcc/Make-platform new file mode 100644 index 0000000000..1415698774 --- /dev/null +++ b/build/platforms/freebsd2-gcc/Make-platform @@ -0,0 +1,46 @@ +# +# LDAP FreeBSD GNU C Make-platform file +# + + +# +# add any platform-specific overrides below here +# +EXTRACFLAGS=-O -g +LDBMBACKEND=-DLDBM_USE_DBBTREE +LDBMINCLUDE=-I/usr/include + +EDITOR=/usr/bin/vi +FINGER=/usr/bin/finger +SENDMAIL=/usr/sbin/sendmail + +LDAP_RUNDIR=/var/run + +MANCOMPRESS=gzip +MANCOMPRESSSUFFIX=.gz + + +# +# LDAP has a problem with the idea of implicit vs. explicit yields +# in call conversion threading packages, like the MIT pthreads +# package. Rather than resolve this globally, I have marked the +# threading as "preeemptive", even though it is technically not. +# +# This means that the implicit-yield threading is topologically +# equivalent to preemptive threading. +# +THREADS= -DTHREAD_MIT_PTHREADS -D_THREAD_SAFE -DPTHREAD_PREEMPTIVE + +# use special gcc flag to include libc_r.a +# THREADSLIB= -pthread +THREADSLIB= -lc_r + +# crypt(3) is in a separate library +LDAP_CRYPT_LIB= -lcrypt + +# +# ------------------------------------------------------------------------- +# you will probably not need to edit anything below this point +# ------------------------------------------------------------------------- +CC = gcc +PLATFORMCFLAGS= -Dfreebsd diff --git a/build/platforms/freebsd3-gcc/Make-platform b/build/platforms/freebsd3-gcc/Make-platform new file mode 100644 index 0000000000..f5750b49ce --- /dev/null +++ b/build/platforms/freebsd3-gcc/Make-platform @@ -0,0 +1,46 @@ +# +# LDAP FreeBSD GNU C Make-platform file +# + + +# +# add any platform-specific overrides below here +# +EXTRACFLAGS=-O -g +LDBMBACKEND=-DLDBM_USE_DBBTREE +LDBMINCLUDE=-I/usr/include + +EDITOR=/usr/bin/vi +FINGER=/usr/bin/finger +SENDMAIL=/usr/sbin/sendmail + +LDAP_RUNDIR=/var/run + +MANCOMPRESS=gzip +MANCOMPRESSSUFFIX=.gz + + +# +# LDAP has a problem with the idea of implicit vs. explicit yields +# in call conversion threading packages, like the MIT pthreads +# package. Rather than resolve this globally, I have marked the +# threading as "preeemptive", even though it is technically not. +# +# This means that the implicit-yield threading is topologically +# equivalent to preemptive threading. +# +THREADS= -DPOSIX_THREADS -D_THREAD_SAFE -DPTHREAD_PREEMPTIVE + +# use special gcc flag to include libc_r.a +THREADSLIB= -pthread +#THREADSLIB= -lc_r + +# crypt(3) is in a separate library +LDAP_CRYPT_LIB= -lcrypt + +# +# ------------------------------------------------------------------------- +# you will probably not need to edit anything below this point +# ------------------------------------------------------------------------- +CC = gcc +PLATFORMCFLAGS= -Dfreebsd -- 2.39.5