gdb: clean up template redundancies

See: #25159
This commit is contained in:
Jürgen Buchmüller 2020-09-29 12:57:16 +02:00
parent b86ba6876e
commit dd9a7239f8
1 changed files with 6 additions and 7 deletions

View File

@ -25,8 +25,8 @@ if [ "${CROSS_BUILD}" ]; then
CFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
CXXFLAGS="-I${XBPS_CROSS_BASE}/${py3_inc}"
fi
CFLAGS+=" -fcommon -Wno-error"
CXXFLAGS+=" -fcommon -Wno-error"
CFLAGS+=" -fcommon"
CXXFLAGS+=" -fcommon"
# Package build options
build_options="gdbserver static python"
desc_option_gdbserver="Enable support for building GDB server"
@ -40,7 +40,7 @@ post_extract() {
mkdir -p build
}
do_configure() {
cd ${wrksrc}/build
cd build
../configure ${configure_args/with-sysroot/with-build-sysroot} \
CFLAGS_FOR_BUILD="${CFLAGS_FOR_BUILD} -fcommon"
export gl_cv_func_gettimeofday_clobber=no
@ -48,15 +48,14 @@ do_configure() {
export gl_cv_func_strerror_0_works=yes
}
do_build() {
cd ${wrksrc}/build
cd build
make ${makejobs} all
}
do_install() {
cd ${wrksrc}/build
cd build
make DESTDIR=${DESTDIR} ${makejobs} install
# resolve conflicts with binutils
rm -rf ${DESTDIR}/usr/include ${DESTDIR}/usr/lib
[ -d ${DESTDIR}/usr/lib64 ] && rm -rf ${DESTDIR}/usr/lib64
rm -rf ${DESTDIR}/usr/{include,lib,lib64}
for f in bfd configure standards; do
rm -f ${DESTDIR}/usr/share/info/${f}.info*
done