comparison gnu/gdb/gdb.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents 73a7fdc6d516
children 57dc83a39b13
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
63 with_xml="--with-expat" 63 with_xml="--with-expat"
64 else 64 else
65 with_xml="--without-expat" 65 with_xml="--without-expat"
66 fi 66 fi
67 67
68 build() 68 rm -rf $PKGNAME-$PKGVERSION
69 { 69 tar xvf $PKGNAME-$PKGVERSION.tar.xz
70 rm -rf $PKGNAME-$PKGVERSION 70 cd $PKGNAME-$PKGVERSION
71 tar xvf $PKGNAME-$PKGVERSION.tar.xz
72 cd $PKGNAME-$PKGVERSION
73 71
74 # --disable-nls: install files that conflict with binutils. 72 # --disable-nls: install files that conflict with binutils.
75 CC="$CC" \ 73 CC="$CC" \
76 CFLAGS="$CFLAGS" \ 74 CFLAGS="$CFLAGS" \
77 CXX="$CXX" \ 75 CXX="$CXX" \
78 CXXFLAGS="$CXXFLAGS" \ 76 CXXFLAGS="$CXXFLAGS" \
79 LDFLAGS="$LDFLAGS" \ 77 LDFLAGS="$LDFLAGS" \
80 LIBS="$LIBS" \ 78 LIBS="$LIBS" \
81 ./configure \ 79 ./configure \
82 --build=$CBUILD \ 80 --build=$CBUILD \
83 --host=$CHOST \ 81 --host=$CHOST \
84 --prefix= \ 82 --prefix= \
85 --disable-nls \ 83 --disable-nls \
86 --with-system-zlib \ 84 --with-system-zlib \
87 --with-system-readline \ 85 --with-system-readline \
88 $with_guile \ 86 $with_guile \
89 $with_lzma \ 87 $with_lzma \
90 $with_python \ 88 $with_python \
91 $with_xml 89 $with_xml
92 make 90 make
93 make install DESTDIR=$DESTDIR 91 make install DESTDIR=$DESTDIR
94 find $DESTDIR -type f -name "*.la" -delete 92 find $DESTDIR -type f -name "*.la" -delete
95 93
96 cd .. 94 cd ..
97 rm -rf $PKGNAME-$PKGVERSION 95 rm -rf $PKGNAME-$PKGVERSION
98 }