From a938f268e73a1f5f02321cc0a795a516ffd66a27 Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" Date: Fri, 26 Sep 2003 20:19:19 +0000 Subject: Add LDFLAGS, re-arrange CFLAGS --- mail/sentinel/Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'mail/sentinel') diff --git a/mail/sentinel/Makefile b/mail/sentinel/Makefile index d3c81a1baaba..db7af24a7cc0 100644 --- a/mail/sentinel/Makefile +++ b/mail/sentinel/Makefile @@ -24,10 +24,8 @@ USE_REINPLACE= yes .if !exists(/usr/lib/libmilter.a) && !exists(${LOCALBASE}/lib/libmilter.a) IGNORE= requires Sendmail 8.12 .endif -.if exists(${LOCALBASE}/lib/libmilter.a) CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -.endif post-patch: @${REINPLACE_CMD} -e \ @@ -35,8 +33,8 @@ post-patch: do-build: cd ${WRKSRC} && \ - ${CC} ${CFLAGS} -I${LOCALBASE}/include ${PTHREAD_CFLAGS} \ - -o ${PORTNAME} ${PORTNAME}.c -L${LOCALBASE}/lib \ + ${CC} ${CFLAGS} ${PTHREAD_CFLAGS} \ + -o ${PORTNAME} ${PORTNAME}.c ${LDFLAGS} \ -lmilter -lpcre -lpcreposix ${PTHREAD_LIBS} do-install: -- cgit v1.2.3