File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -14,19 +14,22 @@ 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
24
- --disable-doc
25
+ -Ddefault_library=static
26
+ -Denable_docs=false
27
+ -Denable_examples=false
25
28
)
26
29
27
30
if [[ $TARGET == win* || $TARGET == linux* ]]; then
28
31
myconf+=(
29
- --host= " $FFBUILD_TOOLCHAIN "
32
+ --cross-file=/cross.meson
30
33
)
31
34
else
32
35
echo " Unknown target"
@@ -35,7 +38,7 @@ ffbuild_dockerbuild() {
35
38
36
39
export CFLAGS=" $CFLAGS -Dprint_error=dvdcss_print_error -Dprint_debug=dvdcss_print_debug"
37
40
38
- ./configure " ${myconf[@]} "
39
- make -j$( nproc)
40
- make install DESTDIR=" $FFBUILD_DESTDIR "
41
+ meson setup " ${myconf[@]} " ..
42
+ ninja -j$( nproc)
43
+ DESTDIR=" $FFBUILD_DESTDIR " ninja install
41
44
}
You can’t perform that action at this time.
0 commit comments