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