File tree Expand file tree Collapse file tree
src/SPC/builder/unix/library Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44
55namespace SPC \builder \unix \library ;
66
7+ use SPC \toolchain \ToolchainManager ;
8+ use SPC \toolchain \ZigToolchain ;
79use SPC \util \executor \UnixAutoconfExecutor ;
810use SPC \util \SPCConfigUtil ;
911
@@ -39,13 +41,16 @@ protected function build(): void
3941 $ extraEnv ['LDFLAGS ' ] = '-framework Kerberos ' ;
4042 $ args [] = 'ac_cv_func_secure_getenv=no ' ;
4143 }
42- UnixAutoconfExecutor::create ($ this )
44+ $ make = UnixAutoconfExecutor::create ($ this )
4345 ->appendEnv ($ extraEnv )
4446 ->optionalLib ('ldap ' , '--with-ldap ' , '--without-ldap ' )
4547 ->optionalLib ('libedit ' , '--with-libedit ' , '--without-libedit ' )
46- ->configure (...$ args )
47- ->exec ('find . -name Makefile -exec sed -i "s/-Werror=incompatible-pointer-types//g" {} + ' )
48- ->make ();
48+ ->configure (...$ args );
49+
50+ if (ToolchainManager::getToolchainClass () === ZigToolchain::class) {
51+ $ make ->exec ('find . -name Makefile -exec sed -i "s/-Werror=incompatible-pointer-types//g" {} + ' );
52+ }
53+ $ make ->make ();
4954 $ this ->patchPkgconfPrefix ([
5055 'krb5-gssapi.pc ' ,
5156 'krb5.pc ' ,
You can’t perform that action at this time.
0 commit comments