appendEnv(['CFLAGS' => '-D__STDC_ISO_10646__=201103L']) ->configure(); foreach (['strlcpy', 'strlcat', 'fgetln'] as $symbol) { $usymbol = strtoupper($symbol); FileSystem::replaceFileLineContainsString( $this->source_dir . '/config.h', "/* #undef HAVE_{$usymbol} */", "/* #undef HAVE_{$usymbol} */\n#define {$symbol} libedit_{$symbol}" ); } $make->make(); $this->patchPkgconfPrefix(['libedit.pc']); } }