Fix build with clang11/gcc10

This commit is contained in:
Ulrich Spörlein 2020-09-14 19:28:01 +00:00
parent 278b470b40
commit f4d4c0001a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=548676

View File

@ -19,11 +19,11 @@ LIB_DEPENDS= libsqlite3.so:databases/sqlite3
EXAMPLESDIR= ${PREFIX}/share/examples/mandoc
HAS_CONFIGURE= yes
CFLAGS+= -I${LOCALBASE}/include
CFLAGS+= -I${LOCALBASE}/include -fcommon # clang11/gcc10
LDFLAGS+= -L${LOCALBASE}/lib
post-configure:
@${REINPLACE_CMD} -e '/^CFLAGS/s/-g//' -e '/^PREFIX/s/=/?=/' \
@${REINPLACE_CMD} -e '/^CFLAGS/s/=/?=/' -e '/^PREFIX/s/=/?=/' \
-e 's/^INSTALL_PROGRAM.*/INSTALL_PROGRAM=${INSTALL_PROGRAM}/' \
${WRKSRC}/Makefile.local