I came across a small build idiosyncrasy while updating our Netatalk
package. Netatalk 2.1beta1 uses C99 and requires AC_PROG_CC_C99 in its
configure.in. Where I would have expected configure to append -std=gnu99
to CFLAGS, it instead defines CC="some-gcc -std=gnu99." The default
OpenWRT build definitions then seem to reset the compiler to
CC="some-gcc."

My solution is to add 'CONFIGURE_VARS += CFLAGS="$(TARGET_CFLAGS)
-std=gnu99...' to my makefile.

This works fine, but it is unfortunate that Netatalk won't compile without
this explicit definition. In other environments, netatalk build with no
special effort.

Has anyone else seen this problem in other packages?

Mike
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to