cvs commit: ports/lang/seed7 Makefile distinfo
ports/lang/seed7/files patch-makefile
Jan Beich
jbeich at tormail.net
Thu Nov 24 04:17:17 UTC 2011
Pietro Cerutti <gahr at 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
More information about the cvs-ports
mailing list