Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Aug 1998 10:09:05 +0200
From:      axl@iafrica.com
To:        FreeBSD-gnats-submit@FreeBSD.ORG
Subject:   ports/7702: ports/lang/tcl8.1 ignores CFLAGS
Message-ID:  <E0z9mFt-0003XD-00@axl.training.iafrica.com>

next in thread | raw e-mail | index | archive | help

>Number:         7702
>Category:       ports
>Synopsis:       ports/lang/tcl8.1 ignores CFLAGS
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports
>State:          open
>Quarter:
>Keywords:
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 21 01:10:01 PDT 1998
>Last-Modified:
>Originator:     Sheldon Hearn
>Organization:
UUNET Internet Africa
>Release:        FreeBSD 2.2.7-STABLE i386
>Environment:

	Where CFLAGS is defined in /etc/make.conf

>Description:

	The ports/lang/tcl81 ignores local CFLAGS optimization flags.

>How-To-Repeat:

	Define CFLAGS in /etc/make.conf and watch ports/lang/tcl81
	build without using CFLAGS optimizations.

>Fix:
	
	The following patch to patches/patch-aa teaches the tcl81
	port to honour local CFLAGS.

--- ports/lang/tcl81/patches/patch-aa.ORIG	Mon Feb 16 17:58:30 1998
+++ ports/lang/tcl81/patches/patch-aa		Thu Aug 20 19:44:39 1998
@@ -1,4 +1,5 @@
-+++ Makefile.in	Wed Oct  1 09:51:59 1997
+--- Makefile.in.orig	Tue Feb 24 04:02:50 1998
++++ Makefile.in	Thu Aug 20 19:32:58 1998
 @@ -55,7 +55,9 @@
  BIN_INSTALL_DIR =	$(INSTALL_ROOT)$(exec_prefix)/bin
  
@@ -10,6 +11,15 @@
  
  # Top-level directory in which to install manual entries:
  MAN_INSTALL_DIR =	$(INSTALL_ROOT)$(prefix)/man
+@@ -73,7 +75,7 @@
+ 
+ # To change the compiler switches, for example to change from -O
+ # to -g, change the following line:
+-CFLAGS = -O
++#CFLAGS = -O
+ 
+ # To disable ANSI-C procedure prototypes reverse the comment characters
+ # on the following lines:
 @@ -138,7 +140,7 @@
  # "install" around;  better to use the install-sh script that comes
  # with the distribution, which is slower but guaranteed to work.
@@ -19,7 +29,7 @@
  INSTALL_PROGRAM =	${INSTALL}
  INSTALL_DATA =		${INSTALL} -m 644
  
-@@ -315,7 +317,7 @@
+@@ -334,7 +336,7 @@
  
  SRCS = $(GENERIC_SRCS) $(UNIX_SRCS)
  
@@ -28,7 +38,7 @@
  
  # The following target is configured by autoconf to generate either
  # a shared library or non-shared library for Tcl.
-@@ -324,6 +326,11 @@
+@@ -343,6 +345,11 @@
  	@MAKE_LIB@
  	$(RANLIB) ${TCL_LIB_FILE}
  
@@ -40,7 +50,7 @@
  # Make target which outputs the list of the .o contained in the Tcl lib
  # usefull to build a single big shared library containing Tcl and other
  # extensions.  used for the Tcl Plugin.  -- dl
-@@ -415,7 +422,7 @@
+@@ -434,7 +441,7 @@
  # some ranlibs write to current directory, and this might not always be
  # possible (e.g. if installing as root).
  
@@ -49,7 +59,7 @@
  	@for i in $(LIB_INSTALL_DIR) $(BIN_INSTALL_DIR) ; \
  	    do \
  	    if [ ! -d $$i ] ; then \
-@@ -429,18 +436,23 @@
+@@ -448,18 +455,23 @@
  	@$(INSTALL_DATA) $(TCL_LIB_FILE) $(LIB_INSTALL_DIR)/$(TCL_LIB_FILE)
  	@(cd $(LIB_INSTALL_DIR); $(RANLIB) $(TCL_LIB_FILE))
  	@chmod 555 $(LIB_INSTALL_DIR)/$(TCL_LIB_FILE)
@@ -77,7 +87,7 @@
  		chmod 755 $$i; \
  		else true; \
  		fi; \
-@@ -454,8 +466,15 @@
+@@ -473,8 +485,15 @@
  		else true; \
  		fi; \
  	    done;
@@ -95,7 +105,7 @@
  	@for i in $(TOP_DIR)/library/*.tcl $(TOP_DIR)/library/tclIndex $(UNIX_DIR)/tclAppInit.c $(UNIX_DIR)/ldAix; \
  	    do \
  	    echo "Installing $$i"; \
-@@ -483,30 +502,37 @@
+@@ -506,30 +525,37 @@
  	@cd $(TOP_DIR)/doc; for i in *.1; \
  	    do \
  	    echo "Installing doc/$$i"; \
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0z9mFt-0003XD-00>