Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Nov 2011 23:16:26 -0500
From:      Jan Beich <jbeich@tormail.net>
To:        Pietro Cerutti <gahr@FreeBSD.org>
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
Message-ID:  <1RTQk2-000Lz2-5U@internal.tormail.net>
In-Reply-To: <201111230927.pAN9RkcT024709@repoman.freebsd.org> (Pietro Cerutti's message of "Wed, 23 Nov 2011 09:27:46 %2B0000 (UTC)")
References:  <201111230927.pAN9RkcT024709@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Pietro Cerutti <gahr@FreeBSD.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1RTQk2-000Lz2-5U>