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 722722 "type" : " filelist" ,
723723 "url" : " https://ftp.gnu.org/gnu/libunistring/" ,
724724 "regex" : " /href=\" (?<file>libunistring-(?<version>[^\" ]+)\\ .tar\\ .gz)\" /" ,
725+ "provide-pre-built" : true ,
725726 "license" : {
726727 "type" : " file" ,
727728 "path" : " COPYING.LIB"
740741 "type" : " git" ,
741742 "url" : " https://github.com/static-php/libuuid.git" ,
742743 "rev" : " master" ,
744+ "provide-pre-built" : true ,
743745 "license" : {
744746 "type" : " file" ,
745747 "path" : " COPYING"
Original file line number Diff line number Diff line change 55namespace SPC \builder \unix \library ;
66
77use SPC \util \executor \UnixAutoconfExecutor ;
8+ use SPC \util \SPCConfigUtil ;
89
910trait krb5
1011{
1112 protected function build (): void
1213 {
1314 $ this ->source_dir .= '/src ' ;
1415 shell ()->cd ($ this ->source_dir )->exec ('autoreconf -if ' );
16+ $ libs = array_map (fn ($ x ) => $ x ->getName (), $ this ->getDependencies (true ));
17+ $ spc = new SPCConfigUtil ($ this ->builder , ['no_php ' => true , 'libs_only_deps ' => true ]);
18+ $ config = $ spc ->config (libraries: $ libs , include_suggest_lib: $ this ->builder ->getOption ('with-suggested-libs ' , false ));
1519 UnixAutoconfExecutor::create ($ this )
1620 ->appendEnv ([
21+ 'LIBS ' => $ config ['libs ' ],
1722 'LDFLAGS ' => '-Wl,--allow-multiple-definition ' ,
1823 ])
1924 ->optionalLib ('ldap ' , '--with-ldap ' , '--without-ldap ' )
You can’t perform that action at this time.
0 commit comments