Fix: insure CFLAG safeness
PR: 45688 Submitted by: Conrad Sabatier <conrads@cox.net>
This commit is contained in:
parent
40cece650c
commit
4ea37d8368
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=71119
2 changed files with 8 additions and 2 deletions
|
@ -39,7 +39,10 @@ post-patch:
|
|||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
.endif
|
||||
@${REINPLACE_CMD} -e "s|%%X11BASE%%|${X11BASE}|" ${WRKSRC}/scripts/ogle.in
|
||||
@${REINPLACE_CMD} -E -e 's|(-la52)|\1 ${LIBA52_DEP_LIBS}|' \
|
||||
# hack to make ogle work with liba52 + djbfft
|
||||
# CFLAGS safeness
|
||||
@${REINPLACE_CMD} -E -e 's|(-la52)|\1 ${LIBA52_DEP_LIBS}|; \
|
||||
s,(X?CFLAGS[[:space:]]*=[[:space:]]*"\$$CFLAGS).*(-(fomit-frame-pointer|funroll-loops|march|mcpu)).*",\1",' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
|
||||
pre-configure:
|
||||
|
|
|
@ -39,7 +39,10 @@ post-patch:
|
|||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
.endif
|
||||
@${REINPLACE_CMD} -e "s|%%X11BASE%%|${X11BASE}|" ${WRKSRC}/scripts/ogle.in
|
||||
@${REINPLACE_CMD} -E -e 's|(-la52)|\1 ${LIBA52_DEP_LIBS}|' \
|
||||
# hack to make ogle work with liba52 + djbfft
|
||||
# CFLAGS safeness
|
||||
@${REINPLACE_CMD} -E -e 's|(-la52)|\1 ${LIBA52_DEP_LIBS}|; \
|
||||
s,(X?CFLAGS[[:space:]]*=[[:space:]]*"\$$CFLAGS).*(-(fomit-frame-pointer|funroll-loops|march|mcpu)).*",\1",' \
|
||||
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
|
||||
|
||||
pre-configure:
|
||||
|
|
Loading…
Reference in a new issue