audio/libmad: Convert REINPLACE_CMD to patch file

This commit is contained in:
Po-Chuan Hsieh 2021-09-21 11:06:46 +08:00
parent a219a15792
commit 5cf7913594
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
2 changed files with 2 additions and 4 deletions

View File

@ -29,9 +29,6 @@ SPEED_DESC= Optimize for speed over accuracy
SPEED_CONFIGURE_ON= --enable-speed
SPEED_CONFIGURE_OFF= --enable-accuracy
post-patch:
@${REINPLACE_CMD} -e 's| -fforce-mem||' ${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKDIR}/mad.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig/

View File

@ -13,8 +13,9 @@
case "$optimize" in
-O|"-O "*)
optimize="-O"
optimize="$optimize -fforce-mem"
- optimize="$optimize -fforce-mem"
- optimize="$optimize -fforce-addr"
+ optimize="$optimize"
+ test $CLANG = no && optimize="$optimize -fforce-addr"
: #x optimize="$optimize -finline-functions"
: #- optimize="$optimize -fstrength-reduce"