Skip to content

Commit

Permalink
astro/fowsr: make the compile respect CFLAGS
Browse files Browse the repository at this point in the history
This fixes builds with WITH_PIE enabled.
  • Loading branch information
netchild committed Jan 13, 2023
1 parent 36d5a09 commit 0f6d608
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion astro/fowsr/Makefile
@@ -1,5 +1,6 @@
PORTNAME= fowsr
PORTVERSION= ${FILEVER}
PORTREVISION= 1
CATEGORIES= astro

MAINTAINER= netchild@FreeBSD.org
Expand All @@ -20,7 +21,7 @@ USES= gmake dos2unix
PLIST_FILES= bin/fowsr

post-patch:
${REINPLACE_CMD} 's:gcc:${CC}:g' ${WRKSRC}/Makefile
${REINPLACE_CMD} 's:gcc:${CC} ${CFLAGS}:g' ${WRKSRC}/Makefile
${REINPLACE_CMD} 's:/usr/bin/fowsr:fowsr:g ; s://var//://var/tmp//:g' \
${WRKSRC}/*.sh ${WRKSRC}/fowsr.c

Expand Down

0 comments on commit 0f6d608

Please sign in to comment.