File tree 3 files changed +53
-2
lines changed
3 files changed +53
-2
lines changed Original file line number Diff line number Diff line change @@ -12,10 +12,24 @@ function prebuild_gnutls() {
12
12
13
13
function build_gnutls() {
14
14
cd $BUILD_gnutls
15
- bash
16
15
push_arm
17
- try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi --prefix=$BUILD_gnutls /build/lib
16
+ export PKG_CONFIG_PATH=" $BUILD_nettle /build/lib/pkgconfig:$PKG_CONFIG_PATH "
17
+ OLD_LDFLAGS=$LDFLAGS
18
+ OLD_CPPFLAGS=$CPPFLAGS
19
+
20
+ # echo $SHELL
21
+ # PS1='\w: ' $SHELL
22
+
23
+ export CPPFLAGS=" -I$BUILD_libgmp /build/include $CPPFLAGS -fexceptions -I${ANDROIDNDK} /sources/cxx-stl/stlport/stlport"
24
+ export LDFLAGS=" -L$BUILD_libgmp /build/lib $LDFLAGS \
25
+ $ANDROIDNDK /sources/cxx-stl/gnu-libstdc++/$TOOLCHAIN_VERSION /libs/$ARCH /libsupc++.a \
26
+ $ANDROIDNDK /sources/cxx-stl/gnu-libstdc++/$TOOLCHAIN_VERSION /libs/$ARCH /libgnustl_static.a"
27
+
28
+ try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi --prefix=$BUILD_gnutls /build/ --enable-local-libopts --disable-doc --disable-tests
18
29
try make install
30
+
31
+ export LDFLAGS=$OLD_LDFLAGS
32
+ export CPPFLAGS=$OLD_CPPFLAGS
19
33
pop_arm
20
34
}
21
35
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ VERSION_libgmp=${VERSION_libgmp:- 6.0.0a}
4
+ URL_libgmp=https://gmplib.org/download/gmp/gmp-${VERSION_libgmp} .tar.xz
5
+ DEPS_libgmp=()
6
+ BUILD_libgmp=$BUILD_PATH /libgmp/$( get_directory $URL_libgmp )
7
+ RECIPE_libgmp=$RECIPES_PATH /libgmp
8
+
9
+ function prebuild_libgmp() {
10
+ true
11
+ }
12
+
13
+ function shouldbuild_libgmp() {
14
+ true
15
+ }
16
+
17
+ function build_libgmp() {
18
+ cd $BUILD_libgmp
19
+
20
+ push_arm
21
+ try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi --prefix=$BUILD_libgmp /build/
22
+ # try make check
23
+ try make install
24
+ libtool --finish $BUILD_libgmp /build/
25
+ pop_arm
26
+ }
27
+
28
+ function postbuild_libgmp() {
29
+ true
30
+ }
Original file line number Diff line number Diff line change 2
2
3
3
VERSION_nettle=2.7.1
4
4
URL_nettle=https://ftp.gnu.org/gnu/nettle/nettle-${VERSION_nettle} .tar.gz
5
+ DEPS_nettle=(libgmp)
5
6
BUILD_nettle=$BUILD_PATH /nettle/$( get_directory $URL_nettle )
6
7
RECIPE_nettle=$RECIPES_PATH /nettle
7
8
@@ -12,9 +13,15 @@ function prebuild_nettle() {
12
13
function build_nettle() {
13
14
cd $BUILD_nettle
14
15
push_arm
16
+ OLD_LDFLAGS=$LDFLAGS
17
+ OLD_CPPFLAGS=$CPPFLAGS
18
+ export LDFLAGS=" -L$BUILD_libgmp /build/lib $LDFLAGS "
19
+ export CPPFLAGS=" -I$BUILD_libgmp /build/include $CPPFLAGS "
15
20
try ./configure --build=i686-pc-linux-gnu --host=arm-linux-eabi --prefix=$BUILD_nettle /build/
16
21
try make install
17
22
libtool --finish $BUILD_nettle /build/
23
+ export LDFLAGS=$OLD_LDFLAGS
24
+ export CPPFLAGS=$OLD_CPPFLAGS
18
25
pop_arm
19
26
}
20
27
You can’t perform that action at this time.
0 commit comments