system/wiimms-iso-tools: Fix 15.0 build.

Signed-off-by: B. Watson <yalhcru@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2022-02-09 15:26:58 -05:00 committed by Willy Sudiarto Raharjo
parent c55b6b35eb
commit 76ff08796a
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -23,6 +23,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20220209 bkw: Modified by SlackBuilds.org: fix build on 15.0.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=wiimms-iso-tools
@ -82,7 +84,15 @@ find -L . \
patch -p0 < $CWD/cflags.diff
make CFLAGS="$SLKCFLAGS"
# 20220209 bkw: I need to see the compile/link commands!
sed -i 's,@\$(CC),$(CC),g' Makefile
# 20220209 bkw: overriding in the environment or as make args just
# wasn't working, so I nuked it from orbit. It's the only way to be sure.
SLKCFLAGS+=" -Wl,--allow-multiple-definition -fcommon"
sed -i "s|-O3|$SLKCFLAGS|" Makefile test-libwbfs/Makefile
make
# Fix the install directory
sed -i "s|/usr/local|$PKG/usr|" templates.sed