porting: Linux to Freebsd

Robert Huff roberthuff at rcn.com
Mon Jun 8 20:37:26 UTC 2009


Peter Jeremy writes:


>  >>  > for ac_remove_CFLAG in "-O1" "-O2" "-O3" ; do
>  >>  > 	CFLAGS=${CFLAGS//${ac_remove_CFLAG}/}
>  >>  > 	CPPFLAGS=${CPPFLAGS//${ac_remove_CFLAG}/}
>  >>  > 	CXXFLAGS=${CXXFLAGS//${ac_remove_CFLAG}/}
>  >>  > done
>  >>  
>  >>  Quick try:
>  >>  CFLAGS=`echo $CFLAGS | sed -e 's:-O[123]::g'`
>  >
>  >	No change here either.
>  
>  Obvious question but if you edited configure.ac, you did remember to
>  rerun autoconf afterwards didn't you?

	Uh ... no.  (When I said "complete novice", wasn't kidding. :-)
	Ran autoconf(-2.62).
	That seems to have fixed the "configure" stage.
	I'm into compilation, and:

/usr/include/malloc.h:3:2: error: #error "<malloc.h> has been replaced by <stdlib.h>"


						Robert Huff



More information about the freebsd-ports mailing list