mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-30 05:40:06 +00:00
- Unbreak against Clang and other strict C++ compilers
- Sanitize some post-extract commands while I'm here Reported by: pkg-fallout
This commit is contained in:
parent
a05d721e92
commit
2b9c4da46e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=326354
@ -26,7 +26,7 @@ USE_ZIP= yes
|
||||
|
||||
GCC_VER= 2.7.2
|
||||
GCC_DIR= ${WRKDIR}/gcc-${GCC_VER}
|
||||
PLIST_SUB+= GCC_VER=${GCC_VER}
|
||||
PLIST_SUB= GCC_VER=${GCC_VER}
|
||||
WRKSRC= ${WRKDIR}/saturn
|
||||
ALL_TARGET= default
|
||||
INSTALL_TARGET= build-lib
|
||||
@ -37,10 +37,9 @@ MAKE_ARGS= GCC_SRC="${GCC_DIR}" GCC_VERSION="${GCC_VER}" \
|
||||
|
||||
post-extract: .SILENT
|
||||
# Extract GCC distribution separately because of USE_ZIP/.tar.gz conflict
|
||||
cd ${WRKDIR} && ${GZIP_CMD} -dc \
|
||||
${_DISTDIR}/gcc-${GCC_VER}.tar.gz | ${TAR} -xf -
|
||||
${TAR} xzf ${_DISTDIR}/gcc-${GCC_VER}.tar.gz -C ${WRKDIR}
|
||||
# Patch GCC a bit
|
||||
cd ${GCC_DIR} && ${PATCH} -s < ${WRKSRC}/gcc-target/patches-${GCC_VER}
|
||||
${PATCH} -d ${GCC_DIR} -s < ${WRKSRC}/gcc-target/patches-${GCC_VER}
|
||||
# Prepare GCC by creating proper config symlink
|
||||
${LN} -sf ../../saturn/gcc-target/config-saturn ${GCC_DIR}/config/saturn
|
||||
# Allow GCC to build in our environment
|
||||
@ -50,6 +49,8 @@ post-extract: .SILENT
|
||||
${ECHO_CMD} '#define HAVE_VPRINTF' >> ${GCC_DIR}/config/xm-freebsd.h
|
||||
# Do not install extra copies of GPL (we use license framework instead)
|
||||
${REINPLACE_CMD} -e '/COPYING/d' ${WRKSRC}/make.pubfiles
|
||||
# Unbreak against Clang and other strict C++ compilers
|
||||
${REINPLACE_CMD} -e 's/main (/int &void/' ${WRKSRC}/objdump/bool.cc
|
||||
|
||||
do-configure:
|
||||
cd ${GCC_DIR} && ./configure --target=saturn-local-hp48 \
|
||||
|
Loading…
Reference in New Issue
Block a user