pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

patch: libnbcompat: add check for c99 support



this patch is primarily intended as a fix for bootstrapping pkgsrc on irix using the mipspro compiler.

unlike most modern compilers, mipspro defaults to the c89 standard rather than the most recent / permissive standard it knows. this causes build failures if c99 features are used without passing appropraite flags.

the following patch updates the configure.ac file for libnbcompat to check for c99 support and add appropriate cflags if they are necessary.

--- pkgsrc.old/pkgtools/libnbcompat/files/configure.ac  2019-07-08 18:00:49.000000000 -0700
+++ pkgsrc/pkgtools/libnbcompat/files/configure.ac      2020-05-23 22:09:29.716762537 -0700
@@ -14,7 +14,7 @@ AC_SUBST(INCLUDES)
 
 # Checks for programs.
 AC_PROG_MAKE_SET
-AC_PROG_CC
+AC_PROG_CC_C99
 AC_PROG_INSTALL
 AC_PROG_LN_S
 AC_PROG_RANLIB


Home | Main Index | Thread Index | Old Index