1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

MFH: r542847

net/bsdec2-image-upload: fix build on GCC architectures

-W\#warnings is incorrect for GCC:
cc1: error: -Werror=#warnings: No option -W#warnings

Approved by:	portmgr (fix build blanket)
This commit is contained in:
Piotr Kubaj 2020-07-22 10:18:17 +00:00
parent c328cd0fa9
commit 36536619c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q3/; revision=542848
2 changed files with 18 additions and 2 deletions

View File

@ -13,7 +13,7 @@ LICENSE_FILE= ${WRKSRC}/COPYRIGHT
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss
USES= ssl tar:tgz uidfix
USES= compiler ssl tar:tgz uidfix
CFLAGS+= -I${OPENSSLINC}
LDFLAGS+= -L${OPENSSLLIB}
@ -23,4 +23,10 @@ MAKE_ARGS+= BINDIR=${PREFIX}/bin
PLIST_FILES= bin/bsdec2-image-upload
.include <bsd.port.mk>
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == gcc
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Makefile
.endif
.include <bsd.port.post.mk>

View File

@ -0,0 +1,10 @@
--- Makefile.orig 2020-07-22 09:29:11 UTC
+++ Makefile
@@ -2,7 +2,6 @@ PROG= bsdec2-image-upload
SRCS= main.c
MAN =
WARNS ?= 3
-CFLAGS += -Wno-error=\#warnings
BINDIR ?= /usr/local/bin
LDADD += -lcrypto -lssl