1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Remove unused duplicate global symbols to fix the build against modern

compilers which by default place uninitialized global variables in the
BSS section of the object file; this inhibits the merging of tentative
definitions by the linker and results in the multiple-definition error
because the same variable is defined in more than one compilation unit.

Reported by:	pkg-fallout
This commit is contained in:
Alexey Dokuchaev 2020-09-02 04:28:31 +00:00
parent 024bababe7
commit f2e1dffb99
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=547322

View File

@ -53,4 +53,10 @@ SNDIO_LIB_DEPENDS= libsndio.so:audio/sndio
SNDIO_CONFIGURE_ON= --with-sndio=yes
SNDIO_CONFIGURE_OFF= --with-sndio=no
post-patch:
# Remove unused duplicate global symbols (-fno-common)
@${REINPLACE_CMD} -E '/^g?char command/d' \
${WRKSRC}/src/gui_main.c \
${WRKSRC}/src/playlist.c
.include <bsd.port.mk>