File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,6 +98,14 @@ buildSetup: |
9898 export LDFLAGS=$(meson_join_space "${MESON_LDFLAGS[@]}")
9999 fi
100100
101+ cat >native_file.txt << EOF
102+ [binaries]
103+ c = '${AUTOCONF_BUILD:+${AUTOCONF_BUILD}-}gcc'
104+ cpp = '${AUTOCONF_BUILD:+${AUTOCONF_BUILD}-}g++'
105+ ar = '${AUTOCONF_BUILD:+${AUTOCONF_BUILD}-}ar'
106+ nm = '${AUTOCONF_BUILD:+${AUTOCONF_BUILD}-}nm'
107+ EOF
108+
101109 # $1 : source path
102110 mesonBuild()
103111 {
@@ -111,6 +119,7 @@ buildSetup: |
111119 MESON_OPTIONS+=("--cross-file" "$BOB_CWD/cross_file.txt")
112120 fi
113121 MESON_OPTIONS+=("-Ddefault_library=$(cpackageLibraryType)")
122+ MESON_OPTIONS+=("--native-file" "$BOB_CWD/native_file.txt")
114123 MESON_OPTIONS+=( --prefix /usr --libdir lib --buildtype plain )
115124 MESON_OPTIONS+=( "${@:2}" )
116125 meson setup "${MESON_OPTIONS[@]}"
You can’t perform that action at this time.
0 commit comments