summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-03-18 10:29:38 +0100
committerMaciej Barć <xgqt@gentoo.org>2022-03-18 10:30:39 +0100
commit1f2f7c0e3e2551ef668f71d4e35af2a22d15d106 (patch)
tree7c2a98c12eaed48b84dba6165f39d051f06fb7eb /dev-lang
parentdev-python/pycups: Stabilize 2.0.1-r1 sparc, #835252 (diff)
downloadgentoo-1f2f7c0e3e2551ef668f71d4e35af2a22d15d106.tar.gz
gentoo-1f2f7c0e3e2551ef668f71d4e35af2a22d15d106.tar.bz2
gentoo-1f2f7c0e3e2551ef668f71d4e35af2a22d15d106.zip
dev-lang/smlnj: fix base/runtime/objs/makefile
Closes: https://bugs.gentoo.org/835552 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/smlnj/smlnj-110.99.2.ebuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/dev-lang/smlnj/smlnj-110.99.2.ebuild b/dev-lang/smlnj/smlnj-110.99.2.ebuild
index d3715629848a..4ecbd1aa8d77 100644
--- a/dev-lang/smlnj/smlnj-110.99.2.ebuild
+++ b/dev-lang/smlnj/smlnj-110.99.2.ebuild
@@ -89,8 +89,13 @@ src_prepare() {
-e "/^CPP/s|gcc|$(tc-getCC)|" \
-e "/^CFLAGS/{s|-O[0123s]|| ; s|=|= ${CFLAGS}|}" \
-i base/runtime/objs/mk.* || die
+ sed -e "/^AS/s|as|$(tc-getAS)|" \
+ -e "/^AR/s|ar|$(tc-getAR)|" \
+ -e "/^CC/s|cc|$(tc-getCC)|" \
+ -e "/^CPP/s|/lib/cpp|$(tc-getCPP)|" \
+ -e "/^RANLIB/s|ranlib|$(tc-getRANLIB)|" \
+ -i base/runtime/objs/makefile || die
- sed -i "/^AR/s|ar|$(tc-getAR)|" base/runtime/objs/makefile || die
sed -i "s|nm |$(tc-getNM) |g" config/chk-global-names.sh || die
}