From owner-cvs-all@FreeBSD.ORG Thu Nov 24 04:17:17 2011 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 84837106566B; Thu, 24 Nov 2011 04:17:17 +0000 (UTC) (envelope-from jbeich@tormail.net) Received: from server2.hudsonvalleyhost.com (server2.hudsonvalleyhost.com [66.7.195.77]) by mx1.freebsd.org (Postfix) with ESMTP id 3BE048FC13; Thu, 24 Nov 2011 04:17:16 +0000 (UTC) Received: from [87.236.194.191] (port=39813 helo=internal.tormail.net) by server2.hudsonvalleyhost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1RTQkN-0008hK-Lv; Wed, 23 Nov 2011 23:17:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.net; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:Date:References:In-Reply-To:Subject:Cc:To:From; bh=QgsNDH6PVdFxcW8kWoyrialgwYcrJtw7J0JO+Jwomu8=; b=r3iyuFqtyUnIGx9k5GGwgLRWJNKWjmEM2DiB1lJdfMsl5KXOniNrdxaFTNsRCkaBz0Pl+7y+lNHZQPYbyLGOoY+hyuO/HqLtpjfIIdCy9FnZSsCB3MHLmpx0DdyhLWWEUlGr0YzxUShMtG59vvmD/D0pst4915YuUxI5Q1C+ZBY=; Received: from jbeich by internal.tormail.net with local (Exim 4.63) (envelope-from ) id 1RTQk2-000Lz2-5U; Thu, 24 Nov 2011 04:16:56 +0000 From: Jan Beich To: Pietro Cerutti In-Reply-To: <201111230927.pAN9RkcT024709@repoman.freebsd.org> (Pietro Cerutti's message of "Wed, 23 Nov 2011 09:27:46 +0000 (UTC)") References: <201111230927.pAN9RkcT024709@repoman.freebsd.org> Date: Wed, 23 Nov 2011 23:16:26 -0500 MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1RTQk2-000Lz2-5U@internal.tormail.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server2.hudsonvalleyhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tormail.net X-Source: X-Source-Args: X-Source-Dir: Cc: cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org Subject: Re: cvs commit: ports/lang/seed7 Makefile distinfo ports/lang/seed7/files patch-makefile X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Nov 2011 04:17:17 -0000 Pietro Cerutti writes: > FreeBSD ports repository > > Modified files: > lang/seed7 Makefile distinfo > lang/seed7/files patch-makefile > Log: > - Update to 05_20111111 > - Respect CC and CFLAGS [1] It still respects neither: - -O2 always overrides any user-specified -O[0-4] (from make.conf or sys.mk) - -g has no meaning unless WITH_DEBUG is used and disables STRIP - system CFLAGS are not inherited during gmake depend - unless passed via command-line/environment gmake(1) has no way to inherit CC value from make.conf/Makefile.local ref. http://www.freebsd.org/doc/en/books/porters-handbook/dads-cflags.html # try to build non-optimized debug build $ make WITH_DEBUG= DEBUG_FLAGS='-O0 -g3' [...] ===> Building for seed7-05.20111111 cc -pipe -O0 -g3 -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I/usr/local/include -c -o hi.o hi.c [...] $ echo CFLAGS+='-O0 -g3' >Makefile.local $ echo STRIP= >>Makefile.local $ make [...] ===> Building for seed7-05.20111111 cc -O2 -pipe -O0 -g3 -fno-strict-aliasing -O2 -g -Wall -Wstrict-prototypes -Winline -Wconversion -Wshadow -Wpointer-arith -I/usr/local/include -c -o hi.o hi.c [...] # is CC defined via user makefile respected? (Makefile.local or make.conf) $ unset CC $ echo CC=clang >Makefile.local # or CC=gcc46 $ make -V CC clang $ make ===> Configuring for seed7-05.20111111 (cd /usr/ports/lang/seed7/work/seed7/src && gmake depend) echo "#define ANSI_C" > version.h echo "#define USE_DIRENT" >> version.h echo "#define PATH_DELIMITER '/'" >> version.h echo "#define CATCH_SIGNALS" >> version.h echo "#define HAS_SYMLINKS" >> version.h echo "#define HAS_FIFO_FILES" >> version.h echo "#define USE_LOCALTIME_R" >> version.h echo "#define USE_MMAP" >> version.h echo "#define AWAIT_WITH_SELECT" >> version.h echo "#define USE_TERMINFO" >> version.h echo "#define CONSOLE_UTF8" >> version.h echo "#define OS_STRI_UTF8" >> version.h echo "#define _FILE_OFFSET_BITS 64" >> version.h echo "#define os_fseek fseeko" >> version.h echo "#define os_ftell ftello" >> version.h echo "#define os_off_t off_t" >> version.h echo "#define USE_GETADDRINFO" >> version.h echo "#define ESCAPE_SHELL_COMMANDS" >> version.h echo "#define USE_SIGSETJMP" >> version.h echo "#define USE_BIG_RTL_LIBRARY" >> version.h echo "#define likely(x) __builtin_expect((x),1)" >> version.h echo "#define unlikely(x) __builtin_expect((x),0)" >> version.h cc --version > cc_vers.txt gmake: *** [version.h] Error 1 *** Error code 2