summaryrefslogtreecommitdiff
path: root/eclass/libretro-core.eclass
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
commitceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (patch)
tree9f47ee47c31a0f13f9496879cd88a1042550aa81 /eclass/libretro-core.eclass
parent53cba99042fa967e2a93da9f8db806fe2d035543 (diff)
gentoo (leap year) resync : 29.02.2020
Diffstat (limited to 'eclass/libretro-core.eclass')
-rw-r--r--eclass/libretro-core.eclass12
1 files changed, 6 insertions, 6 deletions
diff --git a/eclass/libretro-core.eclass b/eclass/libretro-core.eclass
index 768c4701827b..f5f63065f223 100644
--- a/eclass/libretro-core.eclass
+++ b/eclass/libretro-core.eclass
@@ -126,12 +126,12 @@ libretro-core_src_prepare() {
# * Add short-rev to Makefile
sed \
-e 's/\r$//g' \
- -e "/flags.*=/s:-O[[:digit:]]:${CFLAGS}:g" \
- -e "/CFLAGS.*=/s:-O[[:digit:]]:${CFLAGS}:g" \
- -e "/CXXFLAGS.*=/s:-O[[:digit:]]:${CXXFLAGS}:g" \
- -e "/.*,--version-script=.*/s:$: ${LDFLAGS} ${LIBS}:g" \
- -e "/\$(CC)/s:\(\$(SHARED)\):\1 ${LDFLAGS} ${LIBS}:" \
- -e 's:\(\$(CC)\):\1 \$(CFLAGS):g' \
+ -e "/flags.*=/s|-O[[:digit:]]|${CFLAGS}|g" \
+ -e "/CFLAGS.*=/s|-O[[:digit:]]|${CFLAGS}|g" \
+ -e "/CXXFLAGS.*=/s|-O[[:digit:]]|${CXXFLAGS}|g" \
+ -e "/.*,--version-script=.*/s|$| ${LDFLAGS} ${LIBS}|g" \
+ -e "/\$(CC)/s|\(\$(SHARED)\)|\1 ${LDFLAGS} ${LIBS}|" \
+ -e 's|\(\$(CC)\)|\1 \$(CFLAGS)|g' \
-e "s/GIT_VERSION\s.=.*$/GIT_VERSION=${custom_libretro_commit_sha}/g" \
-i "${makefile}" || die "Failed to use custom cflags in ${makefile}"
done