File tree 1 file changed +6
-6
lines changed
src/SPC/builder/linux/library
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -18,22 +18,22 @@ class libffi extends LinuxLibraryBase
18
18
public function build (): void
19
19
{
20
20
[$ lib , , $ destdir ] = SEPARATED_PATH ;
21
-
22
21
$ arch = getenv ('SPC_ARCH ' );
23
22
24
23
shell ()->cd ($ this ->source_dir )
25
- ->exec (
24
+ ->setEnv (['CFLAGS ' => $ this ->getLibExtraCFlags (), 'LDFLAGS ' => $ this ->getLibExtraLdFlags (), 'LIBS ' => $ this ->getLibExtraLibs ()])
25
+ ->execWithEnv (
26
26
'./configure ' .
27
27
'--enable-static ' .
28
28
'--disable-shared ' .
29
29
"--host= {$ arch }-unknown-linux " .
30
30
"--target= {$ arch }-unknown-linux " .
31
- '--prefix= ' . // use prefix=/
31
+ '--prefix= ' .
32
32
"--libdir= {$ lib }"
33
33
)
34
- ->exec ('make clean ' )
35
- ->exec ("make -j {$ this ->builder ->concurrency }" )
36
- ->exec ("make install DESTDIR= {$ destdir }" );
34
+ ->execWithEnv ('make clean ' )
35
+ ->execWithEnv ("make -j {$ this ->builder ->concurrency }" )
36
+ ->execWithEnv ("make install DESTDIR= {$ destdir }" );
37
37
38
38
if (is_file (BUILD_ROOT_PATH . '/lib64/libffi.a ' )) {
39
39
copy (BUILD_ROOT_PATH . '/lib64/libffi.a ' , BUILD_ROOT_PATH . '/lib/libffi.a ' );
You can’t perform that action at this time.
0 commit comments