--- cnf/mak/afnix-freebsd.mak.orig Wed Aug 31 21:59:00 2005 +++ cnf/mak/afnix-freebsd.mak Wed Aug 31 22:00:29 2005 @@ -18,21 +18,21 @@ # - compiler and linker section - # ---------------------------------------------------------------------------- -CC = g++ -LD = gcc -LK = gcc +CC = $(CXX) +LD = $(CXX) +LK = $(CXX) AR = ar STDCCFLAGS = -Wall -Werror -MMD -fno-builtin STACCFLAGS = DYNCCFLAGS = -fPIC PLTCCFLAGS = DEBUGFLAGS = -g -OPTCCFLAGS = -O2 +OPTCCFLAGS = PFLCCFLAGS = -g -pg COVCCFLAGS = -g -fprofile-arcs -ftest-coverage CPPCCFLAGS = -nostdinc -nostdinc++ CXXCCFLAGS = -STDDEFINES = -D_REENTRANT +STDDEFINES = $(PTHREAD_CFLAGS) DBGDEFINES = -DDEBUG OPTDEFINES = STDINCLUDE = @@ -75,8 +75,8 @@ # adjust for freebsd platform ifeq ($(PLATNAME),freebsd) -LD = g++ -LK = g++ +LD = $(CXX) +LK = $(CXX) ARFLAGS = rc LDFLAGS = -shared AFXCPPLIBS = @@ -93,7 +93,7 @@ # adjust linker flags for freebsd ifeq ($(PLATNAME),freebsd) -LKFLAGS = -pthread +LKFLAGS = $(PTHREAD_LIBS) endif # ----------------------------------------------------------------------------