From mi@kot.ne.mediaone.net  Wed Mar 22 22:12:58 2000
Return-Path: <mi@kot.ne.mediaone.net>
Received: from kot.ne.mediaone.net (kot.ne.mediaone.net [24.218.15.190])
	by hub.freebsd.org (Postfix) with ESMTP id C051437B6DA
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 22 Mar 2000 22:12:56 -0800 (PST)
	(envelope-from mi@kot.ne.mediaone.net)
Received: from rtfm.newton (root@rtfm.newton [10.10.0.1])
	by kot.ne.mediaone.net (8.9.3/8.9.1) with ESMTP id BAA46695
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Mar 2000 01:12:53 -0500 (EST)
Received: (from root@localhost)
	by rtfm.newton (8.9.3/8.9.3) id BAA01515;
	Thu, 23 Mar 2000 01:12:53 -0500 (EST)
	(envelope-from mi@kot.ne.mediaone.net)
Message-Id: <200003230612.BAA01515@rtfm.newton>
Date: Thu, 23 Mar 2000 01:12:53 -0500 (EST)
From: root@kot.ne.mediaone.net
Sender: mi@kot.ne.mediaone.net
Reply-To: mi@aldan.algebra.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: x11-servers/Xfstt port ignores CXX and CXXFLAGS settings
X-Send-Pr-Version: 3.2

>Number:         17564
>Category:       ports
>Synopsis:       x11-servers/Xfstt port ignores CXX and CXXFLAGS settings
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 22 22:20:01 PST 2000
>Closed-Date:    Sat Apr 1 18:19:22 PST 2000
>Last-Modified:  Sat Apr  1 18:20:25 PST 2000
>Originator:     Charlie &
>Release:        FreeBSD 3.4-STABLE i386
>Organization:
>Environment:

>Description:

	It always uses the `-g' and the `c++'...

>How-To-Repeat:

>Fix:
	
--- patch-aa	Thu Dec 24 01:36:08 1998
+++ patches/patch-aa	Thu Mar 23 01:08:29 2000
@@ -1,4 +1,4 @@
---- Makefile.orig	Sun Oct 25 11:21:12 1998
-+++ Makefile	Wed Dec 23 19:32:02 1998
-@@ -2,13 +2,13 @@
+--- Makefile	Mon May 31 02:28:44 1999
++++ Makefile	Thu Mar 23 01:02:25 2000
+@@ -2,16 +2,19 @@
  MISCOPT =
@@ -9,3 +9,7 @@
  #CFLAGS = -fprofile-arcs -ftest-coverage -DMAGNIFY=0
- CFLAGS = -g -Wall -pedantic $(MISCOPT) -DMAGNIFY=0
+-CFLAGS = -g -Wall -pedantic $(MISCOPT) -DMAGNIFY=0
++.if !defined(CXXFLAGS)
++CXXFLAGS:=${CFLAGS}
++.endif
++CFLAGS := ${CXXFLAGS} -Wall -pedantic $(MISCOPT) -DMAGNIFY=0
  #CFLAGS = -O -Wall -pedantic -DDEBUG $(MISCOPT)
@@ -15,7 +19,12 @@
 +#LFLAGS = -L/usr/X11R6/lib -L/usr/openwin/lib/X11
-+LFLAGS = -g -L$(X11BASE)/lib
++LFLAGS =  -L$(X11BASE)/lib
  
- CC = c++
- LD = c++
-@@ -55,8 +55,8 @@
+-CC = c++
+-LD = c++
++CC := ${CXX}
++LD := ${CXX}
+ 
+ OBJS =	RAFile.o	\
+ 	TTFont.o	\
+@@ -56,8 +56,8 @@
  	$(LD) -o $@ $(OBJS) xfstt.o encoding.o $(LFLAGS) -lm

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mharo 
State-Changed-When: Sat Apr 1 18:19:22 PST 2000 
State-Changed-Why:  
Committed, thanks 
>Unformatted:
