File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -14,27 +14,31 @@ ffbuild_enabled() {
14
14
}
15
15
16
16
ffbuild_dockerbuild () {
17
- autoreconf -i
17
+ # stop the static library from exporting symbols when linked into a shared lib
18
+ sed -i ' s/SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT/SUPPORT_ATTRIBUTE_VISIBILITY_DEFAULT_DISABLED/g' meson.build
19
+ sed -i ' s/-DLIBDVDCSS_EXPORTS//g' src/meson.build
20
+
21
+ mkdir build && cd build
18
22
19
23
local myconf=(
20
24
--prefix=" $FFBUILD_PREFIX "
21
- --disable-shared
22
- --enable-static
23
- --with-pic
25
+ -Ddefault_library=static
26
+ -Denable_docs=false
27
+ -Denable_examples=false
24
28
)
25
29
26
30
if [[ $TARGET == win* || $TARGET == linux* ]]; then
27
31
myconf+=(
28
- --host= " $FFBUILD_TOOLCHAIN "
32
+ --cross-file=/cross.meson
29
33
)
30
34
else
31
35
echo " Unknown target"
32
36
return -1
33
37
fi
34
38
35
- ./configure " ${myconf[@]} "
36
- make -j$( nproc)
37
- make install DESTDIR=" $FFBUILD_DESTDIR "
39
+ meson setup " ${myconf[@]} " ..
40
+ ninja -j$( nproc)
41
+ DESTDIR=" $FFBUILD_DESTDIR " ninja install
38
42
}
39
43
40
44
ffbuild_configure () {
You can’t perform that action at this time.
0 commit comments