File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/SPC/builder/linux/library Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 44
55namespace SPC \builder \linux \library ;
66
7+ use SPC \builder \linux \SystemUtil ;
78use SPC \exception \FileSystemException ;
89use SPC \exception \RuntimeException ;
910use SPC \store \FileSystem ;
@@ -44,16 +45,15 @@ protected function build(): void
4445 } else {
4546 $ ssl_options = 'SSLTYPE=none ' ;
4647 }
48+ $ ldl = SystemUtil::getLibcVersionIfExists () <= '2.17 ' ? 'EXTRALDFLAGS="-ldl -lrt -lpthread" ' : '' ;
4749 shell ()->cd ($ this ->source_dir )
4850 ->exec ('make clean ' )
4951 ->exec ('touch ip6 ' )
5052 ->exec ('chmod +x tools/an ' )
5153 ->exec ('chmod +x tools/ua ' )
5254 ->exec ('chmod +x src/osdep/unix/drivers ' )
5355 ->exec ('chmod +x src/osdep/unix/mkauths ' )
54- ->exec (
55- "yes | make slx {$ ssl_options } EXTRACFLAGS='-fPIC -fpermissive' "
56- );
56+ ->exec ("yes | make slx {$ ssl_options } EXTRACFLAGS='-fPIC -fpermissive' $ ldl " );
5757 try {
5858 shell ()
5959 ->exec ("cp -rf {$ this ->source_dir }/c-client/c-client.a " . BUILD_LIB_PATH . '/libc-client.a ' )
You can’t perform that action at this time.
0 commit comments