--- Makefile.orig Mon Nov 13 22:59:25 2006 +++ Makefile Sun Jan 7 14:20:10 2007 @@ -568,14 +568,14 @@ FC_freebsd=f77 CURSES_freebsd_gnu=yes -CC_freebsd_gnu=gcc -LD_freebsd_gnu=gcc +CC_freebsd_gnu=$(CC) +LD_freebsd_gnu=$(CC) LDOPTIONS_freebsd_gnu=-shared PIC_freebsd_gnu=-fPIC -COPTIONS_freebsd_gnu=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DMALLOC_CHECK_=0 -COPTIONSld_freebsd_gnu= -FOPTIONS_freebsd_gnu= -FOPTIONSld_freebsd_gnu= +COPTIONS_freebsd_gnu=$(CFLAGS) -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -DMALLOC_CHECK_=0 +COPTIONSld_freebsd_gnu=$(LDFLAGS) +FOPTIONS_freebsd_gnu=$(FFLAGS) +FOPTIONSld_freebsd_gnu=$(LDFLAGS) CURSESLIB_freebsd_gnu=-lncurses SYSLIBSexe_freebsd_gnu=-lm -lc SYSLIBSshr_freebsd_gnu=-lm -lc